control_char() for ASCII needs to include both genuine control
authornicm <nicm@openbsd.org>
Thu, 20 Apr 2017 21:23:16 +0000 (21:23 +0000)
committernicm <nicm@openbsd.org>
Thu, 20 Apr 2017 21:23:16 +0000 (21:23 +0000)
commitec77d776db91339343939c0d78fd190f78524b10
tree330312acf98d0af67d711ed95cebf8af419f85b9
parent57f7e8ae7de8360946a8960e9d7227fbe5b134b2
control_char() for ASCII needs to include both genuine control
characters and top-bit-set nonprintable characters (so both iscntrl()
and !isprint()), fixes behaviour broken in r1.15/r1.16, noticed by
deraadt@.

ok deraadt tedu
usr.bin/less/charset.c