From: Akim Demaille <[EMAIL PROTECTED]>
   Date: 25 Jul 2000 09:41:52 +0200

   Paul, may I ask you what you think about this?

It should be OK to set LC_COLLATE to "C", and also all the other LC_*
variables: LC_CTYPE, LC_TIME, LC_NUMERIC, LC_MONETARY, and
LC_MESSAGES.

It shouldn't be necessary to do this (as LC_ALL="C" should override
LC_COLLATE), but it also shouldn't hurt to do this, if it's needed for
buggy hosts.  In the old days we used to worry about the environment
getting too large, but these days we shouldn't waste time worrying
about a few extra bytes in the environment.

   I suspect you'll say we should not use ranges with tr :)

Yes, absolutely.  Even when you set LC_ALL to "C", POSIX provides no
guarantee that A-Z does what you want.  In particular, it won't work
as you intend on EBCDIC hosts (where A through Z are not contiguous
like ASCII).  I'm getting some EBCDIC bug reports these days now that
Linux runs on IBM mainframes.

Reply via email to