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


_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils

Reply via email to