CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2011/06/20 12:14:01

Modified files:
        usr.bin/grep   : binary.c 

Log message:
Switch binary file detection from !(isprint() || isspace()) to checking
for embedded NULs. Matches GNU and FreeBSD grep, and avoids problems with
e.g. latin1-encoded files being treated as binary in the UTF-8 locale once
grep calls setlocale() (which it does not, yet).
OK millert@ tedu@

Reply via email to