From owner-freebsd-current@FreeBSD.ORG Fri Mar 26 00:43:59 2004 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 83C9616A4CE for ; Fri, 26 Mar 2004 00:43:59 -0800 (PST) Received: from e0-a11.b1.lan.prg.vol.cz (e0-a11.b1.lan.prg.vol.cz [195.122.204.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB9F343D3F for ; Fri, 26 Mar 2004 00:43:58 -0800 (PST) (envelope-from pav@FreeBSD.org) Received: from pav.hide.vol.cz (localhost [127.0.0.1])i2Q8hu5S052182; Fri, 26 Mar 2004 09:43:56 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by pav.hide.vol.cz (8.12.11/8.12.11/Submit) id i2Q8huhY052181; Fri, 26 Mar 2004 09:43:56 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: pav.hide.vol.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Michael Reifenberger In-Reply-To: <20040326085219.T24707@fw.reifenberger.com> References: <20040326085219.T24707@fw.reifenberger.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-rYditBd1daf78WBYfpFM" Message-Id: <1080290635.3663.2.camel@pav.hide.vol.cz> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 26 Mar 2004 09:43:56 +0100 cc: freebsd-current@FreeBSD.org Subject: Re: strange tr behaviour X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 08:43:59 -0000 --=-rYditBd1daf78WBYfpFM Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable V p=E1, 26. 03. 2004 v 09:00, Michael Reifenberger p=ED=B9e: > Hi, > under -current with the following env settings: > LC_ALL=3Dde_DE.ISO8859-15 > LC_CTYPE=3Dde_DE.ISO8859-15 > LANG=3Dde_DE.ISO8859-15 > using tr as follows I get: >=20 > # echo "abcdefghijklmnopqrstuvwxyz" | tr '[a-z]' '[A-Z]' > ABCDEFGHIJKLMNOPQRSU=DAWXY=DD] correct > but: >=20 > # echo "abcdefghijklmnopqrstuvwxyz" | tr '[:lower:]' '[:upper:]' > ABCDEFGHIJKLMNOPQRSTUVWXYZ correct > AND: >=20 > # unsetenv LC_ALL > # unsetenv LC_CTYPE > # unsetenv LANG > # echo "abcdefghijklmnopqrstuvwxyz" | tr '[a-z]' '[A-Z]' > ABCDEFGHIJKLMNOPQRSTUVWXYZ correct > ?!? > Anyone else? > Anyone any clue? Everything works as expected, what's the problem? You can't abuse [a-z] [A-Z] for uppercasing of string. --=20 Pav Lucistnik Is this a dagger which I see before me, its handle towards my hand? Come, let me clutch thee! I have thee not, and yet I see thee still. --=-rYditBd1daf78WBYfpFM Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAY+1LntdYP8FOsoIRAsMkAJ4k0uD5XZyX353BeNC64D8kH4NJPACgsbRi +0wF6oakjxVhU0Nkom+lQ7M= =CTeG -----END PGP SIGNATURE----- --=-rYditBd1daf78WBYfpFM--