From 5e4633932782f08412e8cee75236f4f458591a3d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 28 Jul 2000 19:52:40 +0000 Subject: Update. 2000-07-27 Bruno Haible * 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 * posix/fnmatch.c (is_char_class): Fix logic. Avoid buffer overrun. Use the optimized version of this function outside glibc as well. --- wctype/wctrans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wctype/wctrans.c') diff --git a/wctype/wctrans.c b/wctype/wctrans.c index 3dd72231cd..6c61c0b630 100644 --- a/wctype/wctrans.c +++ b/wctype/wctrans.c @@ -50,9 +50,9 @@ wctrans (const char *property) if (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_HASH_SIZE) != 0) { /* Old locale format. */ - if (cnt == 0) + if (cnt == __TOW_toupper) return (wctrans_t) __ctype32_toupper; - else if (cnt == 1) + else if (cnt == __TOW_tolower) return (wctrans_t) __ctype32_tolower; /* We have to search the table. */ -- cgit v1.2.1