[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in coreutils sort
From: |
Bob Proulx |
Subject: |
Re: bug in coreutils sort |
Date: |
Mon, 23 Oct 2006 09:52:15 -0600 |
User-agent: |
Mutt/1.5.9i |
Vadim smelyansky wrote:
> I tried to sort following strings and sort just keep them as is. I tried
> all possible options and it is looks like dashes make some problem. I
> think there is a bug in sort, because msort by William J. Poser did
> sorted this list in proper way.
Thank you for your report. However this matches a very common
signature that is not a bug in sort but a problem with your locale
setting that instructs sort to fold case and ignore punctuation.
What is your locale setting?
locale
Try setting your local to C (aka POSIX) and try again?
LC_ALL=C sort SOMEFILE
Personally I use the following settings.
export LANG=en_US.UTF-8
export LC_COLLATE=C
This is a frequently given answer. More information may be found in
the FAQ at this URL. Look for "Sort does not sort in normal order!".
http://www.gnu.org/software/coreutils/faq/
Bob