GNU bug report logs - #23012
sort: add option to set specific locale

Previous Next

Package: coreutils;

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: John Heidemann <johnh <at> isi.edu>, 23012 <at> debbugs.gnu.org
Subject: bug#23012: add option to specific locale to sort
Date: Mon, 14 Mar 2016 11:39:37 -0700
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.