GNU bug report logs - #42986
sort: possible bug when sorting special characters

Previous Next

Package: coreutils;

Reported by: "Wolter H. V." <wolterhv <at> gmx.de>

Date: Sat, 22 Aug 2020 15:38:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


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

From: Eric Blake <eblake <at> redhat.com>
To: control <at> debbugs.gnu.org
Subject: Re: bug#42986: sort: possible bug when sorting special characters
Date: Sat, 22 Aug 2020 10:51:53 -0500
tag 42986 notabug
close 42986
thanks

On 8/22/20 6:46 AM, Wolter H. V. wrote:
> The following commands:
> 
>      echo 'Pará,9\nParacito,0' | sort --field-separator=, -k1
> 
> and
> 
>      echo 'Pará,Z\nParacito,A' | sort --field-separator=, -k1
> 
> give
> 
>      Pará,9
>      Paracito,0
> 
> and
> 
>      Paracito,A
>      Pará,Z
> 
> respectively.
> 
> Sorting the string 'á\na' results in 'a\ná', so I would expect the commands above to put Paracito before Pará, but this is not the case for the first command. Why is that?
> 
> Regards,
> 
> Wolter HV
> 
> 
> 
> 

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org





This bug report was last modified 4 years and 274 days ago.

Previous Next


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