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

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



Kaixo!

On Sat, Sep 01, 2001 at 03:25:34PM +0200, Simon Josefsson wrote:

> > $ LANG=sv_SE.UTF-8 bash -c 'echo -e "å\nä\nö\nz" | sort'

LANG=sv_SE.UTF-8 bash -c 'echo -e "å\nä\nö\nz"|iconv -f latin1 -t utf-8|sort'

maybe ?

if you type in latin1 instead of utf-8 you need to convert.

You cannot type in the same terminal and expect to sort in latin1 and utf-8
from the same source. You need latin1 letters to test latin1 sorting
and utf-8 letters to test utf-8 sorting.
And the result should be the same, as the rules are independent of encoding.

I have å ä ö z for sv_SE, in both iso-8859-1, -15 and utf-8. 
 
-- 
Ki ça vos våye bén,
Pablo Saratxaga

http://www.srtxg.easynet.be/		PGP Key available, key ID: 0x8F0E4975
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/