bug-coreutils
[Top][All Lists]
Advanced

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

Re: FEATURE REQUEST: ls -- Document that LC_* variable affects sort orde


From: Eric Blake
Subject: Re: FEATURE REQUEST: ls -- Document that LC_* variable affects sort order
Date: Thu, 17 Dec 2009 19:11:15 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jari Aalto on 12/17/2009 3:00 PM:
> SUGGESTION
> 
> The LC_* variables seem to affect the listing order, but this is not
> mentioned in the manual page.

Yes, the LC_* variables affect sorting in a LOT of applications.  This is
a FAQ:
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-ls-command-is-not-listing-files-in-a-normal-order_0021

> Please add following paragraph, as seen in
> sort(1), to read:
> 
>        *** WARNING *** The locale specified by the environment affects
>        sort order. Set LC_ALL=C to get the traditional sort order that
>        uses native byte values.

Yes, it would make sense to factor that statement out of sort.c into a
helper function in system.h, then have more than ls.c also call that
function to reuse this paragraph.   Would you like to write the patch?

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksq5MMACgkQ84KuGfSFAYAv1gCghmq6Yaqx3JY8pA/XC5SAIm2C
dTMAoJ+y5hA+7yw5k8OakTzYwxH6H9es
=p3+y
-----END PGP SIGNATURE-----




reply via email to

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