Weird locale troubles (?!)

Wiktor Niesiobedzki freebsd-lists at w.evip.pl
Tue Jan 27 01:47:36 PST 2004


On Tue, Jan 27, 2004 at 10:38:25AM +0100, Pav Lucistnik wrote:
> V út, 27. 01. 2004 v 10:33, Michael Nottebrock píše:
> > Andrey Chernov wrote:
> > 
> > > On Tue, Jan 27, 2004 at 10:20:36AM +0100, Michael Nottebrock wrote:
> > > 
> > >>Does this mean that our locale is bogus or Linux'/glibc's is?
> > > 
> > > 
> > > Our locale is right in that area. Don't know about Linux/glibc locale or tr
> > 
> > That actually wasn't a serious question. The output is OBVIOUSLY bogus - it 
> > should be ROUTER, glibc's locale does the right thing (and ours breaks GNU tr 
> > as well).
> 
> I asked on exactly this same "feature" few months again, and I was told
> that it's illegal to abuse `tr a-z A-Z` to do uppercase conversion.
> So just rewrote your script to use use awk toupper() ...
Why not `tr [:lower:] [:upper:]`?


Wiktor Niesiobedzki



More information about the freebsd-current mailing list