bug-textutils
[Top][All Lists]
Advanced

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

Re: dictionary order bug


From: Bob Proulx
Subject: Re: dictionary order bug
Date: Mon, 12 Jan 2004 19:41:40 -0700
User-agent: Mutt/1.3.28i

John Mocenigo wrote:
> The dictionary order option does not sort in dictionary order:

Thank you for your report.  It is most appreciated.  However it
matches a very common problem signature which is not usually a bug in
sort.

> $ echo 'aB\nab\nAb' | sort -d -f
> ab
> aB
> Ab
> 
> It should be:
> 
> Ab
> aB
> ab

This works for me using the C (aka POSIX) locale.

What locale are you using?  I am going to guess that is the problem.

  locale

Try this:

  unset LANG
  export LC_ALL=POSIX

Then try your test again.  See your system and other standards
documentation for how it reacts in the presence of locales.

  http://www.unix-systems.org/single_unix_specification_v2/xcu/sort.html

> $ sort --version
> sort (textutils) 2.0.21

If this problem persists beyond the locale then please consider
upgrading to a newer version.  That one is quite old.  In fact please
upgrade regardless.  GNU coreutils is the replacement for textutils.

  STABLE
    ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.gz
    ftp://ftp.gnu.org/gnu/coreutils/coreutils-5.0.tar.bz2
    (coreutils is the union of fileutils, textutils, and sh-utils)

  (unstable latest, but likely good candidates)
    http://fetish.sf.net/coreutils-5.1.0.tar.gz
    http://fetish.sf.net/coreutils-5.1.0.tar.bz2

Bob




reply via email to

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