[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort bug?
From: |
Jim Meyering |
Subject: |
Re: sort bug? |
Date: |
Tue, 28 May 2002 10:16:51 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) |
stefano federici <address@hidden> wrote:
> It seems that the -f option (that is the "ignore-case" option) of sort doesn't
> work with accented characters. For example the following command
>
> sort -f -k1 input.txt > output.txt
>
> where input.txt contains:
>
> È 1
> à 2
> è 3
>
> will output the following output.txt file:
>
> È 1
> à 2
> è 3
>
> instead of the expected:
>
> à 2
> È 1
> è 3
What version of sort are you using? (run `sort --version')
What locale are you using? (run `locale')
The locale you use determines how bytes are ordered.
There are a few questions in the FAQ that should help you:
http://www.gnu.org/software/fileutils/doc/faq/core-utils-faq.html
It works fine for me using the latest version and with
an appropriate locale settings:
$ env LC_ALL=fr_FR sort -f < in
à 2
È 1
è 3
If I use the default (C) locale, I get the
result that you didn't expect:
$ sort -f < in
È 1
à 2
è 3
- sort bug?, stefano federici, 2002/05/26
- Re: sort bug?,
Jim Meyering <=