GNU bug report logs - #6972
bug in sorting floats

Previous Next

Package: coreutils;

Reported by: saddy <sadmail <at> gmx.de>

Date: Thu, 2 Sep 2010 15:48:01 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 6972 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: saddy <sadmail <at> gmx.de>, 6972 <at> debbugs.gnu.org
Subject: Re: bug#6972: bug in sorting floats
Date: Thu, 02 Sep 2010 12:10:26 -0600
[forwarding on your mail to the list, to close this out]

On 09/02/2010 11:55 AM, saddy wrote:
> Thanks for your reply. In my last mail some spaces have been lost, so
> now indeed it is line 5 to sort.

The spaces were gone before your original mail hit my inbox.  From the 
mail headers of your original mail, I see you use Thunderbird:

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

which has a known issue where pasting text or replying to a prior email 
can result in Tbird eating spaces prior to words starting with <, >, and 
&.  That's probably the explanation.

> I've found out that it has been my fault. I have locale de_DE.UTF-8,
> therefore sort is assuming ',' for floats. With en locale it's working
> fine.

Ah, an issue with locales.

And yes, the new 'sort --debug' tries to make locale issues obvious, 
since that's the first thing it outputs:

>> $ sort --debug -k6g test.txt
>> sort: using `en_US.UTF-8' sorting rules

Glad to know it's not a bug.

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




This bug report was last modified 13 years and 291 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.