Subject: :upper: and :lower: not working with tr and utf8 characters

From: Milos Sramek <[email-masked]>
Date: Wed, 21 Sep 2011 21:47:55 +0200

Hello,

there seems to be a bug in tr: utf8 characters are not converted using
:upper: and :lower:

For example:
$ echo lľsšcčtťzž | tr [:lower:] [:upper:]
LľSšCčTťZž

AWK does it correctly
$ echo lľsšcčtťzž | awk '{ print toupper($0) }'
LĽSŠCČTŤZŽ

Used system: Ubuntu 10.10, my locale settings are
$ env locale
LANG=sk_SK.utf8
LC_CTYPE="sk_SK.utf8"
LC_NUMERIC=en_US.utf8
LC_TIME="sk_SK.utf8"
LC_COLLATE="sk_SK.utf8"
LC_MONETARY="sk_SK.utf8"
LC_MESSAGES="sk_SK.utf8"
LC_PAPER="sk_SK.utf8"
LC_NAME="sk_SK.utf8"
LC_ADDRESS="sk_SK.utf8"
LC_TELEPHONE="sk_SK.utf8"
LC_MEASUREMENT="sk_SK.utf8"
LC_IDENTIFICATION="sk_SK.utf8"
LC_ALL=

Observed on other systems, too.

thank you
Milos

-- 
email & jabber: [email-masked]