[Top][All Lists]

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

bug#23012: add option to specific locale to sort

From: Paul Eggert
Subject: bug#23012: add option to specific locale to sort
Date: Mon, 14 Mar 2016 11:39:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 03/14/2016 11:02 AM, John Heidemann wrote:
A test case that exhibits locale-specific oddness, with current sort:

... LC_COLLATE=C sort ...

And the happeniess that ensues from control without environment variables:

... sort --locale=C ...

I dunno, these approaches seem about the same to me. And 'LC_ALL=C sort' is standardized whereas 'sort --locale=C' is not, which is a significant advantage for portable scripts. And if we added the --locale option to 'sort', for consistency we'd need to add it to uniq, awk, grep, etc., etc., and document all this, and explain why there are two ways to specify the same thing and that one overrides the other, etc., etc. Is the minor benefit worth all this hassle?

reply via email to

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