[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FW: sort problem
From: |
Jim Meyering |
Subject: |
Re: FW: sort problem |
Date: |
28 Sep 2000 15:49:01 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 |
"Macbeth, Michael" <address@hidden> writes:
| > I am using RedHat 6.1 sort FSF version 2.0
| >
| > Try sorting these three lines: eg sort -b
| > A2 2
| > A1 2
| > A 2
| >
| > The order is: (WRONG!)
| > A1 2
| > A 1
| > A2 2
| >
| > The order should be: (as in RedHat 4.2 GNU textutils) 1.22
| > A 2
| > A1 2
| > A2 2
| >
| > Hmmm.
| >
| > Is there a bug fix? The original 4.2 sort seems to work OK on the 6.1
| > platform.
You are using the version of sort that comes with textutils-2.0
or newer and have reported a problem whereby it is sorting in
some non-ASCII order.
That is due not to a bug in sort, but to the fact that you have
set environment variables that direct sort to use improper locale-
specific tables (you or your vendor have probably set environment
variables like LC_ALL to en_US).
You should set LC_ALL to POSIX
# If you use bash or some other Bourne-based shell,
export LC_ALL=POSIX
# If you use a C-shell,
setenv LC_ALL POSIX
and then sort will work the way you expect.
- FW: sort problem, Macbeth, Michael, 2000/09/25
- Re: FW: sort problem,
Jim Meyering <=