GNU bug report logs - #26319
sort -u deletes characters it shouldn't

Previous Next

Package: coreutils;

Reported by: sort-u <at> re-gister.com

Date: Fri, 31 Mar 2017 04:35:02 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: sort-u <at> re-gister.com, 26319 <at> debbugs.gnu.org
Subject: bug#26319: sort -u deletes characters it shouldn't
Date: Thu, 30 Mar 2017 22:15:04 -0700
tag 26319 notabug
close 26319
stop

On 30/03/17 14:27, sort-u <at> re-gister.com wrote:
> sort (GNU coreutils) 8.26
> $ echo $'䜌\n龹' | sort -u
> Expected output:龹䜌
> Actual output:䜌

That's because the strcoll() in that locale is comparing them as equal.
This needs to be addressed in the locale data for glibc etc.

thanks,
Pádraig




This bug report was last modified 6 years and 264 days ago.

Previous Next


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