Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2011 11:14:56 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        doc@freebsd.org
Subject:   Re: nroff mdoc character errors
Message-ID:  <alpine.BSF.2.00.1103161108130.21863@wonkity.com>
In-Reply-To: <821F52B1-F457-4FF0-A7EC-B24DEF460767@mac.com>
References:  <alpine.BSF.2.00.1103141406500.69969@wonkity.com> <821F52B1-F457-4FF0-A7EC-B24DEF460767@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 Terminal.app (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.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1103161108130.21863>