nroff mdoc character errors

Warren Block wblock at
Wed Mar 16 17:14:57 UTC 2011

On Mon, 14 Mar 2011, Chuck Swiger wrote:

> On Mar 14, 2011, at 1:21 PM, Warren Block wrote:
>> man mergemaster | hd | less -p'80 90'
>> shows 0x80 and 0x90 characters where lines should be hyphenated. 0x80 0x90 shows as "-" in an xterm, but as three non-English characters on a real console.  Likewise, parens come out as 0xa8 and 0xe2.
>> groff works correctly:
>> gzcat /usr/share/man/man8/mergemaster.8.gz | groff -Tascii -mdoc -
>> nroff does not:
>> gzcat /usr/share/man/man8/mergemaster.8.gz | nroff -mdoc -
> I can't reproduce here, running a shell under (which claims to be TERM=xterm-color).  What do you have $TERM set to, and do you have $LC_ALL and friends from setlocale(3) set to something?

Tested again on a stock PCBSD install, it still produces the 0x80 0x90 
sequence on csh and bash.  TERM set to xterm or xterm-color doesn't make 
a difference.  No LC_* variables are set.

(I did change the PCBSD settings for mouse acceleration from "a twitch 
flings the pointer across town" to 1.0, and disabling "flash the cursor 
in a seizure-inducing way".  But neither of these should affect how man 
pages are rendered.)

More information about the freebsd-doc mailing list