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

Submitter:  None
Submitted:  Thu 02 Oct 2008 11:04:15 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-08 bonzini Open/ClosedOpen Closed
    2010-03-08 bonzini StatusNone Fixed
    2009-12-04 bonzini Summaryecho 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.13-02a9.
    Corresponding source code