[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in sort 5.2.1
From: |
Eric Blake |
Subject: |
Re: bug in sort 5.2.1 |
Date: |
Fri, 24 Mar 2006 09:41:57 -0700 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to address@hidden on 3/24/2006 8:50 AM:
> I have found what appears to be a bug in gnu sort 5.2.1, under Linux.
5.2.1 is old; consider upgrading to the latest stable version 5.94:
http://lists.gnu.org/archive/html/bug-coreutils/2006-02/msg00078.html
> The attached file is in UNIX format (no carriage returns). It is -not-
> in sorted order. Running 'sort sort.txt' produces output in the same
> order, ie unsorted. If you have trouble reproducing this, please get
> back to me and I'll provide complete environmental information. Thanks
> for your attention.
This is probably not a bug in sort, but a misunderstanding on your part.
You probably have your locale set to something that collates strings in a
manner that your provided input file is already sorted in that locale.
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021
Try 'LC_ALL=C sort sort.txt' to see the difference.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEJCFV84KuGfSFAYARAtsNAJ9I8D1Tj1Prj+HB80YPRISrJNQ7NwCeIme7
zY1k/rL1OpTIKJ5MReLy5eQ=
=2su6
-----END PGP SIGNATURE-----