bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tr '[:upper:]' '[:lower:]' -- misaligned construct


From: Pádraig Brady
Subject: Re: tr '[:upper:]' '[:lower:]' -- misaligned construct
Date: Thu, 10 Jan 2008 14:27:36 +0000
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Jim Meyering wrote:
> "James Youngman" <address@hidden> wrote:
> 
>> On Jan 5, 2008 11:34 PM, Jim Meyering <address@hidden> wrote:
>>> diff --git a/NEWS b/NEWS
>>> index 5285d51..5b1b366 100644
>>> --- a/NEWS
>>> +++ b/NEWS
>>> @@ -2,6 +2,12 @@ GNU coreutils NEWS                                    -*- 
>>> outline -*-
>>>
>>>  * Noteworthy changes in release 6.? (????-??-??) [?]
>>>
>>> +** Bug fixes
>>> +
>>> +  tr's case conversion would fail in a locale with differing numbers
>>> +  of lower case and upper case characters.  E.g., this would fail:
>>> +  env LC_CTYPE=en_US.iso88591 tr '[:upper:]' '[:lower:]'
>> AIUI, that should be en_US.iso8859-1.
> 
> Thanks for mentioning that.
> Can you point to a reference, or do you know of a system on which that
> works but the other doesn't?  I chose the name from the output of
> "locales -a".

en_US.iso88591 looks to be the canonicalized internal name.
I.E. lower-cased and with all '-' stripped.
For example the following does not generate errors:

LANG=en_US.iSo-8-859-1 locale >/dev/null

I would suggest using the format as specified in locale.alias,
i.e. en_US.ISO-8859-1

Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]