emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#22655: closed (grep-2.21 (and git master): --null-


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22655: closed (grep-2.21 (and git master): --null-data and ranges work in an odd way (-P works fine))
Date: Sun, 20 Nov 2016 08:04:02 +0000

Your message dated Sun, 20 Nov 2016 00:03:26 -0800
with message-id <address@hidden>
and subject line Re: bug#22655: grep -Pz '^' now fails!
has caused the debbugs.gnu.org bug report #22655,
regarding grep-2.21 (and git master): --null-data and ranges work in an odd way 
(-P works fine)
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
22655: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22655
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: grep-2.21 (and git master): --null-data and ranges work in an odd way (-P works fine) Date: Sat, 13 Feb 2016 23:20:52 +0000
The issue is found by Ulrich Mueller:

It seems DFA engine does not understand --null-data:

~/dev/git/grep $ cat a-test.sh 
#!/bin/bash

printf '12\n34\0' | LC_ALL=en_US.utf-8 src/grep -z    '^[1234yz]*$'  | wc -c
printf '12\n34\0' | LC_ALL=en_US.utf-8 src/grep -P -z '^[1234yz]*$'  | wc -c
printf '12\n34\0' | LC_ALL=en_US.utf-8 src/grep -z    '^[1234y-z]*$' | wc -c
printf '12\n34\0' | LC_ALL=en_US.utf-8 src/grep -P -z '^[1234y-z]*$' | wc -c

~/dev/git/grep $ ./a-test.sh 
0
6
6
6

All 4 should return 6 but first is not correct.
It seems that 'y-z' range disables dfa.c code and works fine.

-- 

  Sergei

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#22655: grep -Pz '^' now fails! Date: Sun, 20 Nov 2016 00:03:26 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
As all the bugs in this bug report appear to be fixed, I'm closing it now.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]