On 06/13/2016 01:52 PM, Bjoern Voigt wrote: > The manual page says > about the auto guessing code: That's a typo in the man page, and I installed the attached patch to fix it. This should address the first four points you mentioned. As for the remaining points, grep does not consider binary data to be an error. Although there is a judgment call as to whether a matching-lines notification should be sent to stdout or stderr when input contains binary data, grep has been behaving this way for some time (GNU diff even longer) and it would be a hassle to change it at this point. For GNU grep, you should be able to work around the issue by using the -a option. Other grep implementations may or may not work; in my experience, sending NUL bytes to them can sometimes make them dump core or artificially truncate their output.