On Fri, Oct 31, 2003 at 10:06:50PM +0100, Pav Lucistnik wrote:
> Hi,
> 
> strange thing is happening here on two week old -CURRENT world.
> This simple command:
> 
> $ echo CATALOG | tr 'a-z' 'A-Z'
> CATALOG
> 
> but
> 
> $ echo CATALOG | LANG=cs_CZ.ISO8859-2 tr 'a-z' 'A-Z'
> bA?Ak?f

It is incorrect tr usage (a-z range length and letters sequence is not
equal to A-Z range length and letters sequence for cs_CZ locale, see cs_CZ
locale data definition). Correct usage will be

LANG=cs_CZ.ISO8859-2 tr '[:lower:]' '[:upper:]'

or

LANG=C tr 'a-z' 'A-Z'


-- 
Andrey Chernov | http://ache.pp.ru/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to