bug#26319: sort -u deletes characters it shouldn't
From:
Pádraig Brady
Subject:
bug#26319: sort -u deletes characters it shouldn't
Date:
Thu, 30 Mar 2017 22:15:04 -0700
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
tag 26319 notabug
close 26319
stop
On 30/03/17 14:27, address@hidden 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