[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FEATURE REQUEST: ls -- Document that LC_* variable affects sort orde
Re: FEATURE REQUEST: ls -- Document that LC_* variable affects sort order
Thu, 17 Dec 2009 19:11:15 -0700
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/20090812 Thunderbird/188.8.131.52 Mnenhy/0.7.6.666
-----BEGIN PGP SIGNED MESSAGE-----
According to Jari Aalto on 12/17/2009 3:00 PM:
> 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
> 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/
-----END PGP SIGNATURE-----