weird tr output with czech locale
Andrey Chernov
ache at nagual.pp.ru
Fri Oct 31 13:37:28 PST 2003
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031101/1e8f9a74/attachment.bin
More information about the freebsd-current
mailing list