diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-27 13:31:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-27 13:31:04 +0000 |
commit | e31a1492391aa4d678a400d3a7024f93b4dec47e (patch) | |
tree | 86cb49f97633b229d0c63e41499265979b96c95b /term_ascii.c | |
parent | 0816fa828919460b77df2858465b6e1d25cce74d (diff) | |
download | mandoc-e31a1492391aa4d678a400d3a7024f93b4dec47e.tar.gz mandoc-e31a1492391aa4d678a400d3a7024f93b4dec47e.tar.zst mandoc-e31a1492391aa4d678a400d3a7024f93b4dec47e.zip |
Fix a regression in term.c rev. 1.229 reported by bentley@:
In UTF-8 output, do not print anything if mchars_spec2cp() returns 0.
In particular, this repairs handling of zero-width spaces (\&).
While here, let mchars_spec2cp() return 0xFFFD instead of -1
if the character is not found, simplifying the using code.
In HTML output, do not print obfuscated ASCII characters and
do not test for one-char escapes, mchars_spec2cp() already does that.
Diffstat (limited to 'term_ascii.c')
0 files changed, 0 insertions, 0 deletions