This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15736] mismatch between strcasecmp and toupper/tolower in tr_TR.iso88599 locale


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]