CVSROOT: /cvs Module name: src Changes by: [email protected] 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
