From owner-freebsd-current@FreeBSD.ORG Fri Oct 31 13:37:28 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5961516A4CF for ; Fri, 31 Oct 2003 13:37:28 -0800 (PST) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id B52AC43FAF for ; Fri, 31 Oct 2003 13:37:26 -0800 (PST) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.10/8.12.10) with ESMTP id h9VLbP1B029629; Sat, 1 Nov 2003 00:37:25 +0300 (MSK) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.10/8.12.10/Submit) id h9VLbOxL029628; Sat, 1 Nov 2003 00:37:25 +0300 (MSK) (envelope-from ache) Date: Sat, 1 Nov 2003 00:37:24 +0300 From: Andrey Chernov To: Pav Lucistnik Message-ID: <20031031213723.GB29227@nagual.pp.ru> References: <1067634409.27451.20.camel@hood.oook.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <1067634409.27451.20.camel@hood.oook.cz> User-Agent: Mutt/1.5.4i cc: freebsd-current@freebsd.org Subject: Re: weird tr output with czech locale X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 21:37:28 -0000 --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--