coreutils
[Top][All Lists]
Advanced

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

Re: [coreutils] tr: case mapping anomaly


From: Pádraig Brady
Subject: Re: [coreutils] tr: case mapping anomaly
Date: Wed, 29 Sep 2010 01:23:15 +0100
User-agent: 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.

Attachment: tr-case-class.diff
Description: Text Data


reply via email to

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