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

Bug#56195: en_US (also en_CA) do other weird things to sort order



This also breaks things like the gawk test suite, which doesn't set
LANG=C before running 'sort' on the output of some tests.

In particular, you get odd sort orders like:

[dhd@doppelbock]:~$ LANG=C
[dhd@doppelbock]:~$ cat > testfile
- A
0 A
[dhd@doppelbock]:~$ sort testfile
- A
0 A
[dhd@doppelbock]:~$ LANG=en_CA
[dhd@doppelbock]:~$ sort testfile
0 A
- A

But look:

[dhd@doppelbock]:~$ cat > testfile
-
0
[dhd@doppelbock]:~$ sort testfile
-
0

Figuring out the purpose of this is left as an exercise to the
reader...

Arguably, the blame should be laid on people who expect 'sort' to give
consistent output without making sure LANG is set to a specified
value.

-- 
David Huggins-Daines, Senior Linux Consultant, Linuxcare, Inc.
613.562.1239 tel
dhuggins@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.


Reply to: