[Gllug] Keyboard Oddity

Nix nix at esperi.org.uk
Mon May 5 12:29:23 UTC 2008


On 4 May 2008, Stuart Sears said:

> Nix wrote:
>> On 3 May 2008, Stephen Nelson-Smith spake thusly:
>>> LC_COLLATE="en_US.UTF-8"
>> 
>> Look out for this. It has (what are to me) extremely conuterintuitive
>> effects on e.g. ranges in regular expressions: for example [a-m] now
>> includes the capital letters B through M as well.
>
> Actually, IIRC, A through L.
> AIUI UTF ordering is aAbBcCdDeE etc

You see? I get it wrong anyway. :)

> To avoid having to worry about this I have resigned myself to using
> [:upper:] and [:lower:] (etc) for regex patterns these days.

That works fine until you need parts of that range. :/

-- 
`If you are having a "ua luea luea le ua le" kind of day, I can only
 assume that you are doing no work due [to] incapacitating nausea caused 
 by numerous lazy demons.' --- Frossie
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list