Subject: Re: bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison

From: Andreas Schwab <[email-masked]>
Date: Tue, 26 Jun 2012 18:39:02 +0200

Eli Zaretskii <[email-masked]> writes:

>> From: Andreas Schwab <[email-masked]>
>> Cc: Paul Eggert <[email-masked]>,  Dmitry Antipov <[email-masked]>,  [email-masked]
>> Date: Tue, 26 Jun 2012 18:25:03 +0200
>> 
>> Eli Zaretskii <[email-masked]> writes:
>> 
>> > Can tolower fail for these, somehow, in a locale that uses a multibyte
>> > encoding for these strings, and if so, can you give a practical
>> > example of such a failure?
>> 
>> tolower ('I') in a turkish locale.
>
> OK, but that's not an issue with multibyte locales.

It's an issue with both tr_TR.ISO-8859-8 and tr_TR.UTF-8.  In the former
case you get a non-ASCII character, in the latter case you get an upper
case character.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."