[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wrong strcoll() result with different UTF locale setting
- To: linux-utf8@xxxxxxxxxxxx
- Subject: Re: wrong strcoll() result with different UTF locale setting
- From: Simon Josefsson <simon+linux-utf8@xxxxxxxxxxxxx>
- Date: Sat, 01 Sep 2001 12:13:25 +0200
- In-reply-to: <9mom1k$cvc$1@cesium.transmeta.com> ("H. Peter Anvin"'s message of "31 Aug 2001 11:46:12 -0700")
- References: <OFE0B708D3.A797D749-ON85256AB7.0079CE9E@i2.com> <20010830091837.K17456@chanae.alphanet.ch> <9mom1k$cvc$1@cesium.transmeta.com>
- Reply-to: linux-utf8@xxxxxxxxxxxx
- Sender: owner-linux-utf8@xxxxxxxxxxxx
- User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.105
"H. Peter Anvin" <hpa@xxxxxxxxx> writes:
>>> do you mean, in sv_SE.utf8, "ä" is also after "z", ?
>>
>> No, *only* sv_SE (and other scandinavian languages) have that sorting.
>>
>
> I would *hope* sv_SE.utf8 (being the locale for Swedish as used in
> Sweden, in an UTF-8) encoding, sorts "ä" after "z"!!
Not for me, it gets the ordering between å and ä right, but not z.
$ LC_ALL=C bash -c 'echo -e "å\nä\nö\nz" | sort'
z
ä
å
ö
$ LANG=sv_SE bash -c 'echo -e "å\nä\nö\nz" | sort'
z
å
ä
ö
$ LANG=sv_SE.UTF-8 bash -c 'echo -e "å\nä\nö\nz" | sort'
å
ä
ö
z
(RedHat 7.1, glibc 2.2.2, bash 2.04, textutils 2.0.11)
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/