[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in unix sort command
From: |
Eric Blake |
Subject: |
Re: Bug in unix sort command |
Date: |
Mon, 26 Feb 2007 06:40:21 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Lyon on 2/26/2007 5:20 AM:
>
> Hello
>
> Re running sort on list of words
>
> The sort option -u, without -c, should output only the first of an equal
> run, but it outputs more than 1 equal entries.
You'll need to post an actual testcase (probably by attachment, if it
really involves non-printing characters, to ensure mailers don't corrupt
it). You may also want to check that your locale does what you think it
does when comparing strings (many non-C locales intentionally ignore
non-printing characters in strcoll). Reread
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021
for more ideas about how locale affects sort.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF4uNF84KuGfSFAYARAgsxAKCVsNh5r3R47EyIz46B0J8Jw666DwCbBpAY
jhN6cKU8PhQksPpObww98a4=
=tQ34
-----END PGP SIGNATURE-----