Date: Fri, 26 Mar 2004 09:43:56 +0100 From: Pav Lucistnik <pav@FreeBSD.org> To: Michael Reifenberger <mike@Reifenberger.com> Cc: freebsd-current@FreeBSD.org Subject: Re: strange tr behaviour Message-ID: <1080290635.3663.2.camel@pav.hide.vol.cz> In-Reply-To: <20040326085219.T24707@fw.reifenberger.com> References: <20040326085219.T24707@fw.reifenberger.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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 <pav@oook.cz> <pav@FreeBSD.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1080290635.3663.2.camel>