[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in the sort utility
From: |
Eric Blake |
Subject: |
Re: Bug in the sort utility |
Date: |
Mon, 08 Mar 2010 16:12:51 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3 |
On 03/08/2010 03:39 PM, Warner Mike - miwarn wrote:
> We came across something that appears to be a bug as opposed to an
> unintended design feature.
Most likely, it is neither a bug nor an unintended feature, but a
documented feature of locale specifications.
>
> I am expecting the output to come out in ASCII sorted order.
If you aren't using the C locale, then you should be aware that some
locales collate case-insensitively, and ignore punctuation. In fact,
this is a FAQ:
http://www.gnu.org/software/coreutils/faq/#Sort-does-not-sort-in-normal-order_0021
Try 'LC_ALL=C sort' to see the difference.
> The information contained in this communication is confidential, is
It is considered poor netiquette to send such emails to publicly
archived lists, where they are rendered unenforceable. You may want to
use a free mailer instead of your employer's account.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature