Date: Sat, 1 Nov 2003 00:37:24 +0300 From: Andrey Chernov <ache@nagual.pp.ru> To: Pav Lucistnik <pav@oook.cz> Cc: freebsd-current@freebsd.org Subject: Re: weird tr output with czech locale Message-ID: <20031031213723.GB29227@nagual.pp.ru> In-Reply-To: <1067634409.27451.20.camel@hood.oook.cz> References: <1067634409.27451.20.camel@hood.oook.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iQCVAwUBP6LWE+JgpPLZnQjrAQGkJAP+Mu1IuHkF5g1uPIB5TX3tkBQu0TDKb+u6 uMq4/gANEDIVn1DXAtY3z9vnKlAW68MHoX+qQMS13BJJDfN0FsM9mGVxncEKfwla aseRaXv66lzR/opIgqdUwtJE3aqM7ZAMlUnW62LyPv4T98ZZZIZpyB7UvPddlZCM OJkrNgVPPps= =zsGn -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031031213723.GB29227>
