bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37177: sort don't respect the ASCII order


From: Eric Blake
Subject: bug#37177: sort don't respect the ASCII order
Date: Sat, 24 Aug 2019 23:03:35 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

tag 37177 notabug
thanks

On 8/24/19 6:15 PM, Xavier Sanchez wrote:
> Linux snake 5.2.0-2-amd64 #1 SMP Debian 5.2.9-2 (2019-08-21) x86_64 GNU/Linux
> coreutils: 8.30-3+b1 on Debian 10
> 

> More explicit example:
> 
> Coreutils's 8.30-3+b1: find . | sort
> .
> ./files
> ./files/$-e
> ./files/ascii1

Most likely, your problem is not a bug in sort, but a difference in
locales.  A common scenario is that people are surprised to learn that
the en_US.UTF-8 locale sorts case-insensitively while ignoring
punctuation, rather than in ASCII order.

Run 'find . | sort --debug' for more information, as well as 'find . |
LC_ALL=C sort --debug' to see the difference the locale makes.

Assuming that you are repeating the same non-bug of locale differences
as has been frequently reported by others, I'm marking this as not a
bug.  But we can reopen it if your further investigations find something
other than your locale affecting things.

It may also be that busybox sort does not properly honor locale
variables as required by POSIX, but that would be a problem in busybox,
and not something we can fix here.

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]