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
--dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 31, 2003 at 10:06:50PM +0100, Pav Lucistnik wrote: > Hi, >=20 > strange thing is happening here on two week old -CURRENT world. > This simple command: >=20 > $ echo CATALOG | tr 'a-z' 'A-Z' > CATALOG >=20 > but >=20 > $ echo CATALOG | LANG=3Dcs_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=3Dcs_CZ.ISO8859-2 tr '[:lower:]' '[:upper:]' or LANG=3DC tr 'a-z' 'A-Z' --=20 Andrey Chernov | http://ache.pp.ru/ --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iQCVAwUBP6LWE+JgpPLZnQjrAQGkJAP+Mu1IuHkF5g1uPIB5TX3tkBQu0TDKb+u6 uMq4/gANEDIVn1DXAtY3z9vnKlAW68MHoX+qQMS13BJJDfN0FsM9mGVxncEKfwla aseRaXv66lzR/opIgqdUwtJE3aqM7ZAMlUnW62LyPv4T98ZZZIZpyB7UvPddlZCM OJkrNgVPPps= =zsGn -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031031213723.GB29227>