[Top][All Lists]

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

Re: Fwd: sort bug on 2.1.18-5.47

From: Bob Proulx
Subject: Re: Fwd: sort bug on 2.1.18-5.47
Date: Wed, 3 Jul 2002 16:21:49 -0600
User-agent: Mutt/1.4i

> >I think this is a bug about sort.
> >When I sort:
> >
> >O'BRYANT;1;
> >O BRYANT;2;
> >O'BRYANT;3;
> >
> >I got the result is same as input file.
> >
> >Can anybody mail me a good version of sort?

Thank you for your report.  But you have hit a common LANG problem not
a sort problem.  Here is a standard reply.


Please check out the FAQ section on sort.


This is due to the fact that you or your vendor have set environment
variables that direct the program to use locale specific sorting
tables which do not sort as you expect. You or your vendor have
probably set environment variables like LANG, LC_ALL, or LANG to
en_US. There appears to be a problem with that table on some systems
which is not part of the GNU program but part of your vendor's system

Unset them, and then 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 it will then work the way you expect because it will use a
different set of tables.

See the standards documentation for more information on the locale
variables with regards to sort.


Use the 'locale' command to print out which locale data you are

reply via email to

[Prev in Thread] Current Thread [Next in Thread]