about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-28 19:52:40 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-28 19:52:40 +0000
commit5e4633932782f08412e8cee75236f4f458591a3d (patch)
tree692ccf39058d6d1df8ac1067462731b8b7d8dfb1 /locale
parenteac4282fa6325e5633bdfee7a6afd9f943b34b1a (diff)
downloadglibc-5e4633932782f08412e8cee75236f4f458591a3d.tar.gz
glibc-5e4633932782f08412e8cee75236f4f458591a3d.tar.xz
glibc-5e4633932782f08412e8cee75236f4f458591a3d.zip
Update.
2000-07-27  Bruno Haible  <haible@clisp.cons.org>

	* locale/C-ctype.c (_nl_C_LC_CTYPE): Swap the two names in
	_NL_CTYPE_MAP_NAMES.
	* locale/localeinfo.h (__TOW_toupper, __TOW_tolower): New enum values.
	* wctype/wcfuncs.c (towlower, towupper): Use them.
	* wctype/wcfuncs_l.c (__towlower_l, __towupper_l): Likewise.
	* wctype/wctrans.c (wctrans): Likewise.
	* wctype/wctrans_l.c (__wctrans_l): Likewise.

2000-07-27  Bruno Haible  <haible@clisp.cons.org>

	* posix/fnmatch.c (is_char_class): Fix logic.  Avoid buffer overrun.
	Use the optimized version of this function outside glibc as well.
Diffstat (limited to 'locale')
-rw-r--r--locale/C-ctype.c2
-rw-r--r--locale/localeinfo.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/locale/C-ctype.c b/locale/C-ctype.c
index 0b960d9b59..23420c1bc5 100644
--- a/locale/C-ctype.c
+++ b/locale/C-ctype.c
@@ -370,7 +370,7 @@ const struct locale_data _nl_C_LC_CTYPE =
 	      "vowel_connect\0"
 #endif
     },
-    { string: "tolower\0" "toupper\0"
+    { string: "toupper\0" "tolower\0"
 #ifdef PREDEFINED_CLASSES
       "tosymmetric\0"
 #endif
diff --git a/locale/localeinfo.h b/locale/localeinfo.h
index b5dfcd92d8..412ac27a06 100644
--- a/locale/localeinfo.h
+++ b/locale/localeinfo.h
@@ -121,6 +121,15 @@ struct era_entry
 };
 
 
+/* LC_CTYPE specific:
+   Hardwired indices for standard wide character translation mappings.  */
+enum
+{
+  __TOW_toupper = 0,
+  __TOW_tolower = 1
+};
+
+
 /* For each category declare the variable for the current locale data.  */
 #define DEFINE_CATEGORY(category, category_name, items, a) \
 extern struct locale_data *_nl_current_##category;