Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Feb 2006 18:08:10 -0500
From:      Jonathan Noack <noackjr@alumni.rice.edu>
To:        Martin <nakal@nurfuerspam.de>
Cc:        stable@freebsd.org
Subject:   Re: tr(1) buggy with de_DE.ISO8859-1(5) locale?
Message-ID:  <43E3E25A.1040208@alumni.rice.edu>
In-Reply-To: <43E3B356.7030203@nurfuerspam.de>
References:  <43E3B356.7030203@nurfuerspam.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Martin wrote:
> There is a quite nasty bug in tr(1) when using
> de_DE.ISO8859-1(5) locale.
> 
> Try this please:
> unsetenv LC_ALL
> setenv LANG de_DE.ISO8859-1
> echo v | tr a-z A-Z
> 
> I'm getting "W" as result. Shouldn't it be "V"?

(Unexpected behavior explained elsewhere in the thread.)

The correct way to change lower-case to upper-case is as follows:
echo v | tr "[:lower:]" "[:upper:]"

See tr(1) for more info.

-Jonathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43E3E25A.1040208>