bug-coreutils
[Top][All Lists]
Advanced

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

Re: [coreutils-6.9] ls and sort bug: ls and sort fails to sort alphabeti


From: Bob Proulx
Subject: Re: [coreutils-6.9] ls and sort bug: ls and sort fails to sort alphabetically with and without options
Date: Tue, 17 Jul 2007 10:40:20 -0600
User-agent: Mutt/1.5.9i

Wilber Washbucket wrote:
> I noticed that ls was failing to sort alphabetically so I grabbed
> the latest version of coreutils and compiled it to test it, which
> failed as well:

Thank you for your report.  However your report matches a very common
signature that is not a bug in coreutils but is instead simply a
misunderstanding of locale.

Check your locale setting.  The 'locale' command may be used
conveniently to print out the current settings.

  locale

You are probably using a locale in which the character collating
sequence is a "dictionary" sort ordering.  (For example all of the
en_* (english) locales sort by ignoring punctuation and folding case.)

Try setting the high priority locale override to select the POSIX C
locale for everything.

  export LC_ALL=C

See this reference for more details.

  http://www.gnu.org/software/coreutils/faq/

Look for "Sort does not sort in normal order!"

Bob




reply via email to

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