This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15736] mismatch between strcasecmp and toupper/tolower in tr_TR.iso88599 locale
- From: "jrnieder at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 15 Jul 2013 06:36:15 +0000
- Subject: [Bug libc/15736] mismatch between strcasecmp and toupper/tolower in tr_TR.iso88599 locale
- Auto-submitted: auto-generated
- References: <bug-15736-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15736
Jonathan Nieder <jrnieder at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jrnieder at gmail dot com
--- Comment #1 from Jonathan Nieder <jrnieder at gmail dot com> ---
All that POSIX says on this subject is
When the LC_CTYPE category of the current locale is from the
POSIX locale, strcasecmp() and strncasecmp() shall behave as
if the strings had been converted to lowercase and then a byte
comparison performed. Otherwise, the results are unspecified.
I guess that makes it a matter of taste what the results should be. :(
I would have expected the following:
10 INF
10 ÄNF
10 ÄnF
10 Änf
01 inf
01 Änf
01 ÄNf
01 ÄNF
That's because i and Ä are different letters in Turkish, whose
capitalized equivalents are Ä and I.
Is there some standard that makes sense of this stuff?
--
You are receiving this mail because:
You are on the CC list for the bug.