summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-09-14 13:49:18 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-09-16 18:23:49 -0700
commitcd36abd46c5e0768606979ea75a51732062f5624 (patch)
tree430b623978b2dc2c95bee90b99b6dee185deb9cd /configure.ac
parent564a06e761ac06c4a0bcd91ce5060118d35bf912 (diff)
downloadgrep-cd36abd46c5e0768606979ea75a51732062f5624.tar.gz
grep: treat a file as binary if its prefix contains encoding errors
* NEWS: * doc/grep.texi (File and Directory Selection): Document this. * src/grep.c (buffer_encoding, buffer_textbin): New functions. (file_textbin): Rename from file_is_binary. Now returns 3-way value. All callers changed. (file_textbin, grep): Check the input more carefully for text vs binary data. (contains_encoding_error): Remove; use replaced by buffer_encoding. * tests/backref-multibyte-slow: * tests/high-bit-range: * tests/invalid-multibyte-infloop: Use -a, since the input is now considered to be binary. * tests/invalid-multibyte-infloop: Add a check for new behavior.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions