[Top][All Lists]

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

bug#23677: sort --debug not ignoring punctuation when sort does

From: Eric Blake
Subject: bug#23677: sort --debug not ignoring punctuation when sort does
Date: Thu, 2 Jun 2016 16:09:14 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 06/02/2016 03:28 PM, Karl Berry wrote:
>     They are not ignored, just considered only secondary, if the first
>     order characters didn't provide an ordering.
> Ok.  One would have no clue of that, either, from the --debug output.
> sort obviously knows the exact rules defined by the locale, or it
> couldn't do its job.

sort merely calls strcoll(); all the rules are a black box to sort, and
are really something that you have to know how strcoll() uses locale

>  How about a way to dump the rules in some
> human-readable way?  (In sort or another utility or a separate program
> or whatever.)  Similar to how James Youngman found a way to write out
> regex definitions in Texinfo ... just a wish ... -karl

It might be nicer to request the glibc folks to give human-readable
descriptions of their locale files, and how strcoll() is affected by
those definitions, since it is more than just sort(1) that is impacted.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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