[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Uppercase string: broken tr?
From: |
Bruno Haible |
Subject: |
Re: Uppercase string: broken tr? |
Date: |
Sun, 24 Aug 2003 16:21:01 +0200 |
User-agent: |
KMail/1.5 |
Alex J. Dam wrote:
> $ echo 'ABÇ' | tr [:upper:] [:lower:]
> gives me
> abÇ
> (the last character is an uppercase cedilla)
> I expecte its output to be:
> abç
>
> Am I doing something wrong?
No, your expectations match what POSIX specifies.
> Is tr (version 2.1) broken?
Yes, and even the i18n patches from IBM
http://oss.software.ibm.com/developer/opensource/linux/patches/?patch_id=24
contain no fix for it.
> It happens with sed, too.
$ echo 'ABÇ' | sed -e 's,\(.*\),\L\1\E,'
abÇ
Yes this seems like a bug in GNU sed 4.0.3.
I'm CCing bug-coreutils and the sed maintainer, so the maintainers can do
something about it.
Bruno
- Re: Uppercase string: broken tr?,
Bruno Haible <=