This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
Re: Weird case-insensitive collation
- From: "Reshat Sabiq (Reşat)"<tatar dot iqtelif dot i18n at gmail dot com>
- To: Ludovic Courtès <ludovic dot courtes at laas dot fr>
- Cc: libc-locales at sources dot redhat dot com
- Date: Sun, 29 Oct 2006 15:18:16 -0600
- Subject: Re: Weird case-insensitive collation
- Openpgp: id=262839AF;url=http://keyserver.veridis.com:11371
- References: <87k62w1r7f.fsf@laas.fr> <45381092.2070401@gmail.com> <87r6wzv34a.fsf@laas.fr>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ludovic Courtès yazmış:
> Hi,
>> http://opengroup.org/onlinepubs/007908799/xsh/strcasecmp.html
>> In the POSIX locale, strcasecmp() and strncasecmp() do upper to lower
>> conversions, then a byte comparison. The results are unspecified in
>> other locales.
>
> It occurred to me that I had not payed enough attention to that last
> sentence from POSIX, sorry about that.
>
> Still, I find it confusing that the glibc manual specifies (using an
> example) the behavior of `strcasecmp ()' with other locales.
>
> Thanks,
> Ludovic.
>
Yes, i was thinking after your previous message that it could be a doc
bug. If so it should be logged, IMHO.
HTH,
Reshat.
- --
My public GPG key (ID 0x262839AF) is at: http://keyserver.veridis.com:11371
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
iD8DBQFFRRqYO75ytyYoOa8RAizgAKCiKGeBbbiIWv9UTPpPgnHiXzANwQCgiFhG
H7kVoge+m0tk6Rx1QngY+c4=
=dfXh
-----END PGP SIGNATURE-----