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:

[EMAIL PROTECTED]:~$ LANG=C
[EMAIL PROTECTED]:~$ cat > testfile
- A
0 A
[EMAIL PROTECTED]:~$ sort testfile
- A
0 A
[EMAIL PROTECTED]:~$ LANG=en_CA
[EMAIL PROTECTED]:~$ sort testfile
0 A
- A

But look:

[EMAIL PROTECTED]:~$ cat > testfile
-
0
[EMAIL PROTECTED]:~$ 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
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.

Reply via email to