[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    Re: bug in coreutils sort
From:       bob () proulx ! com (Bob Proulx)
Date:       2006-10-23 15:52:15
Message-ID: 20061023155215.GB6076 () dementia ! proulx ! com
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic