diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-07-20 20:04:42 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-07-20 20:04:42 -0700 |
commit | 8a4494506d9175a2c205ff8d39dc58abd83682eb (patch) | |
tree | f8a40477eef8ff0f54ceaab5a2f358b3d6f47b9a /locale/localeinfo.h | |
parent | c3db953c165baa444d01ee6c04ef0c51eba42522 (diff) | |
download | glibc-8a4494506d9175a2c205ff8d39dc58abd83682eb.zip glibc-8a4494506d9175a2c205ff8d39dc58abd83682eb.tar.gz glibc-8a4494506d9175a2c205ff8d39dc58abd83682eb.tar.bz2 |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/locale/localeinfo.h b/locale/localeinfo.h index 3661080..19ea41a 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. */ |