summaryrefslogtreecommitdiff
path: root/usr.bin/pr
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-10-27 16:28:31 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-10-27 16:28:31 +0000
commita14744e8f63782a44c6d1f1c502c936f01032df1 (patch)
tree35c266e7685ebe2679d370a2f40c43299d4d03c4 /usr.bin/pr
parent09ab5367a008599789224b93c997c9974fc446de (diff)
Handle output encoding for unicode, numbered and named escape sequences
in one common, safe way instead of three different ways. In particular, * skip NUL, it is used to mean "no output desired" * deny 0x01-0x1F and 0x7F-0x9F, print REPLACEMENT CHARACTER instead * print 0x20-0x7E literally or name-encoded, as required * print characters above 0x9F numerically
Diffstat (limited to 'usr.bin/pr')
0 files changed, 0 insertions, 0 deletions