buggrep - Bugs: bug #24438, echo Y | LC_ALL=en_US.UTF-8 ./grep...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #24438: echo Y | LC_ALL=en_US.UTF-8 ./grep -i '[y]' #not match

Submitted by:  None
Submitted on:  Thu 02 Oct 2008 11:04:15 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 08 Mar 2010 02:55:56 PM UTC, comment #4:

Thank you for the bug report. This bug has been fixed in the
development sources, which can be downloaded using git from
git://git.sv.gnu.org/grep.git

Paolo Bonzini <bonzini>
Fri 04 Dec 2009 12:41:21 PM UTC, comment #3:

I cannot reproduce any of the examples here, but I can reproduce

$ echo Y | LC_ALL=en_US.UTF-8 ./grep -i '[y]'
$

Paolo Bonzini <bonzini>
Sat 04 Oct 2008 08:41:40 PM UTC, comment #2:

Looks like https://bugs.edge.launchpad.net/ubuntu/+source/grep/+bug/241990

Take a look at comment 8 . You need to build grep without the internal regex support. Multibyte support is quite broken with it.

Jean-Baptiste Lallement <jblallement>
Fri 03 Oct 2008 02:42:39 AM UTC, comment #1:

I just ran into this bug as well, and I can offer a little more information.

$ export LANG=en_US.UTF-8
$ grep --version | head -n1
GNU grep 2.5.3
$ echo 'Foo Foo' | grep -i foo
$ echo 'Foo foo' | grep -i foo
Foo foo
$ echo 'foo Foo' | grep -i foo
foo Foo
$ echo 'Foo Foo' | grep -io foo
$ echo 'Foo foo' | grep -io foo
Foo
foo
$ echo 'foo Foo' | grep -io foo
foo
Foo

So it appears that the line has to contain at least one case-sensitive match in order for any matches to be output at all. But if it does contain at least one case-sensitive match, then all case-insensitive matches are output.

Matt Whitlock <mwhitlock>
Thu 02 Oct 2008 11:04:15 PM UTC, original submission:

does not match as expectes, but:

echo listen=yes | LC_ALL=en_US.UTF-8 grep -i listen=YES #match
echo listen=YES | LC_ALL=en_US.UTF-8 grep listen=YES #match

and
echo listen=YES | LC_ALL=en_US grep -i listen=YES #match

I found it because vsftpd was not starting on LC_ALL=pl_PL.UTF-8

All on grep-2.5.3 (Gentoo, amd64 and i386), grep-2.5.1a works right.

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bonzini (Posted a comment)
  • -unavailable- added by jblallement (Posted a comment)
  • -unavailable- added by mwhitlock (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 08 Mar 2010 02:58:17 PM UTCbonziniOpen/ClosedOpen=>Closed
    Mon 08 Mar 2010 02:55:56 PM UTCbonziniStatusNone=>Fixed
    Fri 04 Dec 2009 12:41:21 PM UTCbonziniSummaryecho listen=YES | LC_ALL=en_US.UTF-8 grep -i listen=YES #not match=>echo Y | LC_ALL=en_US.UTF-8 ./grep -i '[y]' #not match

    Back to the top


    Powered by Savane 3.1-cleanup1