diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-12-30 23:22:36 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-12-30 23:23:30 -0800 |
commit | 413fe0e603740b9cdeb49d61aa789f7254e13d18 (patch) | |
tree | 507e6771bb2b898de7f8b24dcbabff15d944e5f0 /NEWS | |
parent | 5827733ce621bb169afc4f9220cc4624124fc7ba (diff) | |
download | grep-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-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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] |