[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wrong strcoll() result with different UTF locale setting
On Sat, 1 Sep 2001, Simon Josefsson wrote:
> > I would *hope* sv_SE.utf8 (being the locale for Swedish as used in
> > Sweden, in an UTF-8) encoding, sorts "ä" after "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)
Can't reproduce the above. I get correctly (in a UTF-8 xterm):
$ LANG=sv_SE.UTF-8 bash -c 'echo -e "å\nä\nö\nz" | sort'
z
ä
å
ö
Same OS version here.
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/