Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 29/10/17 11:40, 積丹尼 Dan Jacobson wrote:
> < P.S., Yes indeed I had LC_COLLATE=C so maybe --debug should mention
> < where in the environment it made it choices from too.
>
> Ah, like you said
>
> $ LC_ALL=en_CA.UTF-8 sort --debug < /dev/null
> sort: using ‘en_CA.UTF-8’ sorting rules
>
> $ LC_ALL=C sort --debug < /dev/null
> sort: using simple byte comparison
>
> So the last line should be
> sort: using 'C' sorting rules (simple byte comparison)
>
> or maybe also say "effective LC_COLLATE value is ...."..
"C" sorting is badly named and assume prior knowledge,
and is also ambiguous with C.UTF8 etc.
I thought "simple byte comparison" was the most appropriate.
I agree we might mention the locale env vars,
though defaults, and significant env vars vary per system.
cheers,
Pádraig.