bug-coreutils
[Top][All Lists]
Advanced

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

bug#51011: [GNU sort] Numerical sort with delimiter may be broken (bug)


From: Pádraig Brady
Subject: bug#51011: [GNU sort] Numerical sort with delimiter may be broken (bug)
Date: Sat, 9 Oct 2021 13:00:53 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0

On 09/10/2021 04:48, Paul Eggert wrote:
On 10/8/21 7:32 PM, Pádraig Brady wrote:
it's not a thousands separator, rather a grouping
character,
and groups can be in 2, 3, 4, and even 5.

Sure, but 'sort' could determine the group sizes from the locale, and
reject digit strings that are formatted improperly according to the
group-size rules. (Not that I plan to write the code to do that....)

Yes I agree that would be better, but not worth it I think
as there would still be ambiguity in what was a grouping char
and what was a field separator. Also that ambiguity would
now vary across locales.

Another possible change which I'd prefer TBH
would be to disable the grouping separator, or decimal point
if they overlapped with --field-separator.
Doing this would induce a warning from --debug also.

cheers,
Pádraig





reply via email to

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