summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-12-31 10:02:31 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-12-31 10:02:53 -0800
commit1c6e37246cbc1bba8624b43ddd5e08275923034e (patch)
tree55d228b456fd7fdc82ff56678d8eee2678d21471 /NEWS
parentd719afe5a025a7be3c60b0efcf0656f93a6716b6 (diff)
downloadgrep-1c6e37246cbc1bba8624b43ddd5e08275923034e.tar.gz
doc: clarify text vs binary match output
* NEWS: * doc/grep.texi (File and Directory Selection): Make it clearer that grep can now output matching text before reporting a binary match. Problem reported by Norihiro Tanaka in: http://bugs.gnu.org/20526#83
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS14
1 files changed, 9 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index b451d764..6e97e456 100644
--- a/NEWS
+++ b/NEWS
@@ -4,11 +4,15 @@ GNU grep NEWS -*- outline -*-
** Bug fixes
- Binary files are now less likely to generate diagnostics. grep now
- reports "Binary file FOO matches" and suppresses further output when
- grep is about to output a match that contains an encoding error.
- Formerly, grep reported FOO to be binary merely because grep found
- an encoding error in FOO before generating output for FOO.
+ Binary files are now less likely to generate diagnostics and more
+ likely to yield text matches. grep now reports "Binary file FOO
+ matches" and suppresses further output instead of outputting a line
+ containing a encoding error; hence grep can now report matching text
+ before a later binary match. Formerly, grep reported FOO to be
+ binary when it found an encoding error in FOO before generating
+ output for FOO, which meant it never reported both matching text and
+ matching binary data; this was less useful for searching text
+ containing encoding errors in non-matching lines.
[bug introduced in grep-2.21]
grep -c no longer stops counting when finding binary data.