CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2012/07/08 09:48:56

Modified files:
        usr.bin/diff   : diffreg.c 

Log message:
Switch diff(1) binary file detection from !(isprint() || isspace()) to
checking for embedded NULs, as was done for grep(1) some time ago.
Avoids problems with e.g. latin1-encoded files being treated as binary, since
isprint() uses only ASCII by default and diff(1) doesn't call setlocale().
prodded by and ok bluhm

Reply via email to