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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Shivanshu Goyal <shivanshu3 <at> gmail.com>
Subject: bug#21989: closed (Re: bug#21989: grep search by ASCII code
 unsuccessful)
Date: Mon, 23 Nov 2015 16:17:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#21989: grep search by ASCII code unsuccessful

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 21989 <at> debbugs.gnu.org.

-- 
21989: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21989
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Stephane Chazelas <stephane.chazelas <at> gmail.com>,
 Shivanshu Goyal <shivanshu3 <at> gmail.com>
Cc: 21989-done <at> debbugs.gnu.org
Subject: Re: bug#21989: grep search by ASCII code unsuccessful
Date: Mon, 23 Nov 2015 08:16:32 -0800
Thanks, Stephane, for diagnosing the problem. Closing the bug.

[Message part 3 (message/rfc822, inline)]
From: Shivanshu Goyal <shivanshu3 <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: grep search by ASCII code unsuccessful
Date: Sun, 22 Nov 2015 21:24:05 -0800
[Message part 4 (text/plain, inline)]
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 5 (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.