From 8a4494506d9175a2c205ff8d39dc58abd83682eb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 20 Jul 2009 20:04:42 -0700 Subject: Check generated locale for non-ASCII 8-bit characters with case conversion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- locale/C-ctype.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'locale/C-ctype.c') diff --git a/locale/C-ctype.c b/locale/C-ctype.c index 85f3d2addb..2044fb77b6 100644 --- a/locale/C-ctype.c +++ b/locale/C-ctype.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1995-2002, 2003, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1995. @@ -682,6 +682,8 @@ const struct locale_data _nl_C_LC_CTYPE attribute_hidden = { .string = (const char *) _nl_C_LC_CTYPE_class_alnum.header }, /* NR_MAPS wctrans_tables */ { .string = (const char *) _nl_C_LC_CTYPE_map_toupper.header }, - { .string = (const char *) _nl_C_LC_CTYPE_map_tolower.header } + { .string = (const char *) _nl_C_LC_CTYPE_map_tolower.header }, + /* _NL_CTYPE_NONASCII_CASE */ + { .word = 0 } } }; -- cgit v1.2.3