[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #24452] grep -w doesn't always grab whole words - broken multibyte
From: |
Paolo Bonzini |
Subject: |
[bug #24452] grep -w doesn't always grab whole words - broken multibyte support |
Date: |
Wed, 29 Jun 2011 06:33:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 |
Follow-up Comment #6, bug #24452 (project grep):
The code you patched is for POSIX regular expression, not PCRE. Did you test
the patch? PCRE handles this with b, which is also buggy:
$ echo x | grep -Pw 'a?'
x
$ echo x | grep -w 'a?'
$
So I'll probably apply a variant of your patch to handle the PCRE case.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?24452>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/