about summary refs log tree commit diff
path: root/locale/localeinfo.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-07-20 20:04:42 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-20 20:04:42 -0700
commit8a4494506d9175a2c205ff8d39dc58abd83682eb (patch)
treef8a40477eef8ff0f54ceaab5a2f358b3d6f47b9a /locale/localeinfo.h
parentc3db953c165baa444d01ee6c04ef0c51eba42522 (diff)
downloadglibc-8a4494506d9175a2c205ff8d39dc58abd83682eb.tar.gz
glibc-8a4494506d9175a2c205ff8d39dc58abd83682eb.tar.xz
glibc-8a4494506d9175a2c205ff8d39dc58abd83682eb.zip
Check generated locale for non-ASCII 8-bit characters with case conversion.
If a locale does not have 8-bit characters with case conversion which
are different from the ASCII conversion (±0x20) then we can perform
some optimizations.  These will follow later.
Diffstat (limited to 'locale/localeinfo.h')
-rw-r--r--locale/localeinfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/locale/localeinfo.h b/locale/localeinfo.h
index 3661080bb2..19ea41ae6d 100644
--- a/locale/localeinfo.h
+++ b/locale/localeinfo.h
@@ -1,5 +1,5 @@
 /* Declarations for internal libc locale interfaces
-   Copyright (C) 1995-2003, 2005, 2006, 2007, 2008
+   Copyright (C) 1995-2003, 2005, 2006, 2007, 2008, 2009
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -35,6 +35,8 @@
 #define	LIMAGIC(category) \
   (category == LC_COLLATE						\
    ? ((unsigned int) (0x20051014 ^ (category)))				\
+   : category == LC_CTYPE						\
+   ? ((unsigned int) (0x20090720 ^ (category)))				\
    : ((unsigned int) (0x20031115 ^ (category))))
 
 /* Two special weight constants for the collation data.  */