GNU bug report logs - #21989
grep search by ASCII code unsuccessful

Previous Next

Package: grep;

Reported by: Shivanshu Goyal <shivanshu3 <at> gmail.com>

Date: Mon, 23 Nov 2015 07:57:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Shivanshu Goyal <shivanshu3 <at> gmail.com>
To: 21989 <at> debbugs.gnu.org
Subject: bug#21989: grep search by ASCII code unsuccessful
Date: Mon, 23 Nov 2015 05:31:26 +0000
[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.