Markus Kuhn <[EMAIL PROTECTED]> writes:

> 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
> �
> �
> �

'�' sorts before '�' in Swedish, I believe.  (I'm Swedish.)

I was using konsole (non-utf8 xterm) above, sorry.

But something is wrong, in UTF-8 konsole/xterm:

$ locale charmap
UTF-8
$ set|grep -e ^LA -e ^LC
LAMHELPFILE=/etc/lam/lam-helpfile
LANG=sv_SE.UTF-8
$ echo -e "z\n�\n�\n�"|sort
�
�
�
z
$ echo -e "z\n�\n�\n�"|sort
�
�
�
z
$ 

Err.  I entered the characters into the xterm, no cut'n'paste.

The sv_SE (no UTF-8) locale seems to work fine.

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to