Bruno Haible wrote:
> Alex J. Dam wrote:
> >   $ echo 'ABĒ' | tr [:upper:] [:lower:]
> >   abĒ
> >   (the last character is an uppercase cedilla)
> >   I expecte its output to be:
> >   abē

What does 'locale' say in this case?

  locale

> > Am I doing something wrong?
> 
> No, your expectations match what POSIX specifies.

Does POSIX apply if you are not using a POSIX locale?

> > Is tr (version 2.1) broken?
> Yes, [...]
> > It happens with sed, too.
> Yes this seems like a bug in GNU sed 4.0.3.

But sed and tr and other utilities just use the locale data provided
on the system by glibc among other places.  These programs are table
driven by tables that are not part of these programs.  This is why
locale problems are global problems across the entire system of
programs such as grep, sed, awk, tr, etc. or anything else that uses
the locale data.

Bob


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to