CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2014/10/26 11:11:18
Modified files: usr.bin/mandoc : chars.c html.c term.c term.h term_ascii.c Log message: Improve -Tascii output for Unicode escape sequences: For the first 512 code points, provide ASCII approximations. This is already much better than what groff does, which prints nothing for most code points. A few minor fixes while here: * Handle Unicode escape sequences in the ASCII range. * In case of errors, use the REPLACEMENT CHARACTER U+FFFD for -Tutf8 and the string "<?>" for -Tascii output. * Handle all one-character escape sequences in mchars_spec2{cp,str}() and remove the workarounds on the higher level.