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: "vincent-srcware at vinc17 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 15 Jul 2013 15:34:04 +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
--- Comment #4 from Vincent LefÃvre <vincent-srcware at vinc17 dot net> ---
I forgot that POSIX specifies the behavior only in the POSIX locale (for
LC_CTYPE).
Now, this is still a bug in non-POSIX locales as the glibc manual says:
This function is like 'strcmp', except that differences in case are
ignored. How uppercase and lowercase characters are related is
determined by the currently selected locale. In the standard '"C"'
locale the characters A" and a" do not match but in a locale which
regards these characters as parts of the alphabet they do match.
and in my example, the use of toupper/tolower shows how these characters are
related in the selected locale.
--
You are receiving this mail because:
You are on the CC list for the bug.