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 #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Wolter H. V." <wolterhv <at> gmx.de>
To: bug-coreutils <at> gnu.org
Subject: sort: possible bug when sorting special characters
Date: Sat, 22 Aug 2020 12:46:19 +0100
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





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.