diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-27 14:35:26 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-07-27 14:36:02 -0700 |
commit | aa99fbeb9ff85ce8ff024c5ace4e0690726e0ca7 (patch) | |
tree | 8d5bcba9a9a458ba408ca10152a12dceb0103092 /NEWS | |
parent | 2f0255e9f4cc5cc8bd619d1f217902eb29b30bc2 (diff) | |
download | grep-aa99fbeb9ff85ce8ff024c5ace4e0690726e0ca7.tar.gz |
grep: don't falsely report compressed text files as binary
* NEWS: Document this.
* src/main.c (file_is_binary): Remove the heuristic based on
st_blocks, as it does not work for compressed file systems.
On Solaris, it'd be cheap to test whether the file system is known
to be uncompressed, which allow the heuristic, but Solaris has
SEEK_HOLE so there's little point.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,8 +4,8 @@ GNU grep NEWS -*- outline -*- ** Bug fixes - 'grep' no longer falsely reports tiny text files as being binary - on file systems that store tiny files' contents in metadata. + 'grep' no longer falsely reports text files as being binary on file + systems that compress contents or that store tiny contents in metadata. * Noteworthy changes in release 2.13 (2012-07-04) [stable] |