Hi, I got the following patch from glibc developers for the bug. Please include it in the potato glibc. Thanks.
Ganesaan
--- Begin Message --->>>>> rganesan writes: >> Number: 1632 >> Category: libc >> Synopsis: towupper() segfaults after call to set locale Here's a patch to fix the bug. Thanks for reporting the bug, Andreas 2000-03-07 H.J. Lu <[EMAIL PROTECTED]> * locale/C-ctype.c (_nl_C_LC_CTYPE): Fix the initializer order for _NL_CTYPE_TOXXXER32_EX. Index: locale/C-ctype.c =================================================================== RCS file: /cvs/glibc/libc/locale/C-ctype.c,v retrieving revision 1.22.2.4 diff -u -p -r1.22.2.4 C-ctype.c --- C-ctype.c 2000/02/25 07:00:15 1.22.2.4 +++ C-ctype.c 2000/03/07 16:23:40 @@ -370,13 +370,12 @@ const struct locale_data _nl_C_LC_CTYPE { word: 1 }, { string: "ANSI_X3.4-1968" }, #if BYTE_ORDER == LITTLE_ENDIAN - { string: NULL }, + { string: NULL }, { string: NULL }, #endif { string: (const char *) (_nl_C_LC_CTYPE_toupper + 128) }, - { string: NULL }, { string: (const char *) (_nl_C_LC_CTYPE_tolower + 128) } #if BYTE_ORDER == BIG_ENDIAN - , { string: NULL } + , { string: NULL }, { string: NULL } #endif } }; -- Andreas Jaeger SuSE Labs [EMAIL PROTECTED] private [EMAIL PROTECTED]
--- End Message ---

