[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparis
From: |
Andreas Schwab |
Subject: |
bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison |
Date: |
Tue, 26 Jun 2012 18:39:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Andreas Schwab <schwab@linux-m68k.org>
>> Cc: Paul Eggert <eggert@cs.ucla.edu>, Dmitry Antipov <dmantipov@yandex.ru>,
>> 11786@debbugs.gnu.org
>> Date: Tue, 26 Jun 2012 18:25:03 +0200
>>
>> Eli Zaretskii <eliz@gnu.org> 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, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
bug#11786: Use c_strcasecmp for portable ASCII case-insensitive comparison, Dmitry Antipov, 2012/06/26