[Rafal Dabrowa <rafal@softsystem.com.pl>] libc/1163: glibc: wrong work of strcoll

Andreas Jaeger aj@arthur.rhein-neckar.de
Tue Jun 15 00:33:00 GMT 1999


What's broken here (i486, glibc 2.1.1)?

Without any locale information:
$  ./strcoll-test a B; ./strcoll-test B b
strcoll( a, B ) = 31
strcoll( B, b ) = -32

with LANG=de_DE (locale is installed)
$ LANG=de_DE ./strcoll-test a B; LANG=de_DE ./strcoll-test B b 
strcoll( a, B ) = -1
strcoll( B, b ) = 1

with LANG=pl_PL (generated with: localedef -i pl_PL -f ISO-8859-2 pl_PL)
$ LANG=pl_PL ./strcoll-test a B; LANG=pl_PL ./strcoll-test B b
strcoll( a, B ) = -1
strcoll( B, b ) = 1

Andreas



More information about the Libc-alpha mailing list