GNU bug report logs -
#23012
sort: add option to set specific locale
Previous Next
Reported by: John Heidemann <johnh <at> isi.edu>
Date: Mon, 14 Mar 2016 18:24:02 UTC
Severity: wishlist
Tags: wontfix
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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?
This bug report was last modified 6 years and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.