summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2011-06-20 18:14:01 +0000
committerstsp <stsp@openbsd.org>2011-06-20 18:14:01 +0000
commit5ff999700a805455adab6bff70b18b11acd2ff09 (patch)
treeb5f553c4b4e670f413eb9f215df717748908a7da /sys/dev
parentas man page states, lower case undoes upper case. add support for little s, (diff)
downloadwireguard-openbsd-5ff999700a805455adab6bff70b18b11acd2ff09.tar.xz
wireguard-openbsd-5ff999700a805455adab6bff70b18b11acd2ff09.zip
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@
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions