summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-12-30 23:22:36 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-12-30 23:23:30 -0800
commit413fe0e603740b9cdeb49d61aa789f7254e13d18 (patch)
tree507e6771bb2b898de7f8b24dcbabff15d944e5f0 /NEWS
parent5827733ce621bb169afc4f9220cc4624124fc7ba (diff)
downloadgrep-413fe0e603740b9cdeb49d61aa789f7254e13d18.tar.gz
grep: -c should keep counting after binary data
Problem and fix reported by Jaroslav Škarvada, and test case reported by Norihiro Tanaka, in: http://bugs.gnu.org/22028 * NEWS: Document this. * src/grep.c (grep): Don't stop counting merely because nulls seen. * tests/pcre-count: New file. * tests/Makefile.am (TESTS): Add it.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index a14597f1..4bf408c8 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,9 @@ GNU grep NEWS -*- outline -*-
an encoding error in FOO before generating output for FOO.
[bug introduced in grep-2.21]
+ grep -c no longer stops counting when finding binary data.
+ [bug introduced in grep-2.21]
+
grep -oP is no longer susceptible to an infinite loop when processing
invalid UTF8 just before a match.
[bug introduced in grep-2.22]