bug#19985: active locale impacts binary data detection?

2015-03-02 Thread Mike Frysinger
i've got some users reporting diff behavior between 2.20 and 2.21. the example file is attached and has mixed encoding. i think the new behavior is correct, but want to make sure it's expected, or that the maintainers don't have different ideas here. with 2.20: $ LC_ALL=en_US.UTF8 grep 8 test

bug#19985: active locale impacts binary data detection?

2015-03-02 Thread Paul Eggert
The new behavior is expected, and this is mentioned in the NEWS file: If a file contains data improperly encoded for the current locale, and this is discovered before any of the file's contents are output, grep now treats the file as binary. In some cases one can get the old behavior with