[Linux-disciples] Locale and sort order
Stephen R Laniel
steve at laniels.org
Fri Nov 4 14:24:48 EST 2005
My officemate just pointed out that on a Debian box I set up
for him, 'ls' sorts case-insensitively. I had never noticed
this before, but it's apparently true on my Debian and
Ubuntu boxes as well. A little googling suggests that this
is a locale problem: doing
LC_ALL=POSIX ls
will fix the problem temporarily, as will LC_ALL=C. All the
en_US locales have the sort-order problem.
This problem doesn't seem to exist under FreeBSD; I have an
account on a FreeBSD machine, with LANG=en_US.UTF-8, and
everything sorts the way that UNIX people have come to
expect.
Other than hacks like
alias ls="LC_ALL=POSIX ls"
can people suggest any good ways to keep the desired en_US
locale and yet get rid of case-insensitive sorting?
--
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051104/39040227/attachment.pgp
More information about the Linux-disciples
mailing list