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: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#21989: closed (grep search by ASCII code unsuccessful)
Date: Mon, 23 Nov 2015 16:17:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 23 Nov 2015 08:16:32 -0800
with message-id <56533BE0.9070706 <at> cs.ucla.edu>
and subject line Re: bug#21989: grep search by ASCII code unsuccessful
has caused the debbugs.gnu.org bug report #21989,
regarding grep search by ASCII code unsuccessful
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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 3 (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 4 (text/html, inline)]
[Message part 5 (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.


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.