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

Bug#444959: grep -o -i does not work with LC_ALL=C



On Tue, Oct 02, 2007 at 07:33:21AM -0400, Michael Stone wrote:
> reopen 444959
> reassign 444959 libc6
> thanks
>
> On Tue, Oct 02, 2007 at 01:16:05PM +0200, Florian Weimer wrote:
>>> On Tue, Oct 02, 2007 at 11:18:03AM +0200, Florian Weimer wrote:
>>>> Package: coreutils
>>>> Version: 5.97-5.4
>>>>
>>>> $ echo Abc | LC_ALL=C grep -o -i Abc
>>>> $
>>>>
>>>> The expected output is "0:Abc".
>>>
>>> I'm not sure why you believe that. From the man page:
>>>       -o, --only-matching
>>>              Show only the part of a matching line that matches PATTERN.
>>
>> But "Abc" does match "Abc", so it should be printed.  If I leave out
>> "LC_ALL=C" or "-i", a match is printed.  The problem doesn't show up
>> on etch, either.
>
> Ok, I was only looking at the part about "expected output is '0:Abc'" 
> (should be 'Abc') and didn't notice that -o -i wasn't behaving as expected. 
> This seems to be a libc6 or locale issue, since (as you noted) it works 
> fine in etch, but the etch version of coreutils has the same behavior if 
> installed on the current libc6.
>

I am unable to reproduce this bug on my system. Could you please check
if this problem is fixed or not?

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net




Reply to: