diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-07-08 15:48:57 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2012-07-08 15:48:57 +0000 |
commit | 1e99a982bf61474116b384a877df3f23d2fe5249 (patch) | |
tree | 93cabbf5ef269648ad5c27113bfc0fb7726c3351 /bin/md5 | |
parent | c8b28223f84b129f5f72ef10b254b1e64b580f0c (diff) |
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
Diffstat (limited to 'bin/md5')
0 files changed, 0 insertions, 0 deletions