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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
V pá, 26. 03. 2004 v 09:00, Michael Reifenberger pí¹e:
> Hi,
> under -current with the following env settings:
> LC_ALL=de_DE.ISO8859-15
> LC_CTYPE=de_DE.ISO8859-15
> LANG=de_DE.ISO8859-15
> using tr as follows I get:
>
> # echo "abcdefghijklmnopqrstuvwxyz" | tr '[a-z]' '[A-Z]'
> ABCDEFGHIJKLMNOPQRSUÚWXYÝ]
correct
> but:
>
> # echo "abcdefghijklmnopqrstuvwxyz" | tr '[:lower:]' '[:upper:]'
> ABCDEFGHIJKLMNOPQRSTUVWXYZ
correct
> AND:
>
> # 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.
--
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.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQBAY+1LntdYP8FOsoIRAsMkAJ4k0uD5XZyX353BeNC64D8kH4NJPACgsbRi
+0wF6oakjxVhU0Nkom+lQ7M=
=CTeG
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1080290635.3663.2.camel>
