bug-coreutils
[Top][All Lists]
Advanced

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

Re: sort order changed in "sort" and "ls".


From: Rogier Wolff
Subject: Re: sort order changed in "sort" and "ls".
Date: Tue, 10 Mar 2009 16:15:34 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Mar 10, 2009 at 02:40:32PM +0000, Eric Blake wrote:
> Most likely, this is due to your choice of locales, and not a bug
> in sort nor in ls.
> 
> http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Sort-does-not-sort-in-normal-order_0021
> http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-ls-command-is-not-listing-files-in-a-normal-order_0021

Apparently it's LANG that sets the locale: no LC_* variables were set. 

getafix:~/test-ls> echo $LANG
en_US.UTF-8
getafix:~/test-ls> ls
A  b  C  d  E  f  G  h  I  j  K  
getafix:~/test-ls> unsetenv LANG
getafix:~/test-ls> ls
A  C  E  G  I  K  b  d  f  h  j  
getafix:~/test-ls> 


Thanks!

        Roger. 


-- 
** address@hidden ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ




reply via email to

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