From owner-freebsd-doc@FreeBSD.ORG Wed Mar 16 17:14:57 2011 Return-Path: Delivered-To: doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A045106566C for ; Wed, 16 Mar 2011 17:14:57 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 29CB78FC17 for ; Wed, 16 Mar 2011 17:14:56 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p2GHEuOO021892; Wed, 16 Mar 2011 11:14:56 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p2GHEuhE021889; Wed, 16 Mar 2011 11:14:56 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 16 Mar 2011 11:14:56 -0600 (MDT) From: Warren Block To: Chuck Swiger In-Reply-To: <821F52B1-F457-4FF0-A7EC-B24DEF460767@mac.com> Message-ID: References: <821F52B1-F457-4FF0-A7EC-B24DEF460767@mac.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Wed, 16 Mar 2011 11:14:56 -0600 (MDT) Cc: doc@freebsd.org Subject: Re: nroff mdoc character errors X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2011 17:14:57 -0000 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.)