Run this program under a C locale (not en_US): #include <wctype.h> #include <locale.h> int main() { setlocale( LC_ALL, "" ); towupper( 0 ); return 0; }
assigned to jakub
glibc-2.1.92 fixes this (basically, wide character support in glibc 2.1 was fairly incomplete)
This was a "typo" in locale/C-type.c which was fixed at rev 1.22.2.4 in the glibc-2-1 branch. It missed being in glibc-2.1.3 series rpms by about two weeks. The segfault is still present in glibc-2.1.3-23.src.rpm, 17 months after it was fixed. It is possible that the segfault can be avoided by setting a LANG environment variable. I patched my glibc and don't want to revert to check that out.
Created attachment 56124 [details] Patch C-ctype.c, Fix Initializer Order
ah, the bug in C-ctype.c was fixed at 1.22.2.5 on 15 Mar 2000