Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
On 25/09/10 07:53, Jim Meyering wrote:
> Eric Blake wrote:
>> On 09/24/2010 04:47 PM, Pádraig Brady wrote:
>>> I was just looking at a bug reported to fedora there where this abort()s
>>>
>>> $ LC_ALL=en_US tr '[:upper:] ' '[:lower:]'
>
> Ouch! Thanks for reporting it here.
> How many more bugs lurk in tr...
> Consolation: this one is a failure to diagnose invalid inputs.
I found a few more issues:
This valid translation spec aborted:
LANG=en_US tr '[:upper:]- ' '[:lower:]_'
This misaligned conversion spec was allowed:
LANG=C tr 'A-Y[:lower:]' 'a-z[:upper:]'
This misaligned spec was allowed by extending the class:
LANG=C tr '[:upper:] ' '[:lower:]'
I'll apply the attached soon.
cheers,
Pádraig.