[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort bug reappeared
From: |
Geoffrey S. Knauth |
Subject: |
Re: sort bug reappeared |
Date: |
Wed, 18 Oct 2000 05:23:28 -0400 (EDT) |
Thank you for getting back to me so quickly.
export LC_ALL=POSIX
This worked. *However*, I should point out that LC_ALL had not been
previously set to en_US. It was LANG that was set to en_US.
--
Geoffrey S. Knauth
BBN Technologies, 617-873-5257
General: http://knauth.org/gsk
Office: http://stout.bbn.com/~gknauth
----------------------------------------------------------------------
To: "Geoffrey S. Knauth" <address@hidden>
Cc: address@hidden
Subject: Re: sort bug reappeared
from: Jim Meyering <address@hidden>
Date: 18 Oct 2000 07:32:49 +0200
"Geoffrey S. Knauth" <address@hidden> writes:
| Last winter I reported a bug with `sort', which thinks this is correct:
|
| AARDVARK
| ,ABLE
| CHARLIE
| ,DOG
|
| whereas I think this is correct:
|
| ,ABLE
| ,DOG
| AARDVARK
| CHARLIE
|
| I was referred to an RPM (2.0a), which fixed the bug. Now the bug is
| back in sort version 2.0e.
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.
-----------
BTW, in recent textutils test releases, sort --help output
includes this:
*** WARNING ***
This version of sort honors the locale settings in your environment.
For example, if you set one of the LANG or LC_ALL environment variables
to `en_US', then sort will work very differently than most people expect.
If that's not what you want, then set LC_ALL to POSIX in your environment.
- sort bug reappeared, Geoffrey S. Knauth, 2000/10/17
- Re: sort bug reappeared,
Geoffrey S. Knauth <=