Re: locales.

[prev] [thread] [next] [lurker] [Date index for 2006/12/22]

From: Aaron Crane
Subject: Re: locales.
Date: 10:39 on 22 Dec 2006
jrodman@xxxx.xxxxxxxxxx.xxx writes:
> On Fri, Dec 22, 2006 at 05:43:21PM +1300, Guy Thornley wrote:
> > This is just wrong, on every single level I think of, this is WRONG.
> 
> I can't tell if locales are insanely buggy or insane by design,

Mostly, I'd say they're insane by design, and that the POSIX spec that
requires the shell to make [A-Z] unpredictable and useless is similarly
insane.

> The only way I've found to get sane behavior in the shell is LC_COLLATE=C

Yep, definitely a good unbreak-me option for one's personal settings.

Another alternative for scripts and the like is to say [[:upper:]] instead
of [A-Z].  It takes more than twice as many characters, which sucks, but at
least it's predictable.  It also includes non-ASCII upper-case letters,
though, which may or may not be a good thing in any particular situation.

-- 
Aaron Crane
There's stuff above here

Generated at 20:02 on 28 Dec 2006 by mariachi 0.52