[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrong strcoll() result with different UTF locale setting




Markus,
Thanks for your help with the German example.
But I don't understand your Swedish example here.
I think in en_US.utf8, "ä" (0xC3,0xA4) is after "z".
do you mean, in sv_SE.utf8, "ä" is also after "z", ?
then how can we compare ?
I think strcoll("z", "ä") should returns -1 in both locale settings.
Thanks.

-Changjian

>If you need a test case that differs radically then use a Swedish or other
>Scandinavian locale, which sorts ä after z, because they treat ä etc.
>conceptually a bit more as an independent addition to the alphabet, not as
>an umlaut (= a related but phonetically modified version of the same
>letter).