GNU bug report logs -
#21989
grep search by ASCII code unsuccessful
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Correction:
The following is the grep 2.16/2.22 command and output:
(It doesn't output anything)
shivanshu <at> thetis:tmp$ cat temp | grep -P '\xe2\x80\x93'
shivanshu <at> thetis:tmp$
On Sun, Nov 22, 2015 at 9:24 PM Shivanshu Goyal <shivanshu3 <at> gmail.com>
wrote:
> Hi,
>
> I think I found a bug which did not exist in version 2.14, but does seem
> to exist in versions 2.16 and 2.22. I have not tested any other versions.
>
> Say there is a file with the following contents:
>
> shivanshu <at> thetis:tmp$ cat temp | xxd
> 0000000: 68e2 8093 680a h...h.
>
> The following is the grep 2.14 command and output:
>
> shivanshu <at> thetis:tmp$ cat temp | grep -P '\xe2\x80\x93'
> h–h
>
> The following is the grep 2.16/2.22 command and output:
>
> shivanshu <at> thetis:tmp$ cat temp | grep -P '\xe2\x80\x93'
> d1y8 <at> thetis:tmp$
>
> Thanks,
> Shivanshu Goyal
> shivanshu.ca
>
[Message part 2 (text/html, inline)]
This bug report was last modified 9 years and 181 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.