From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 16 14:40:10 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1385C106566C for ; Wed, 16 Feb 2011 14:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CCA528FC14 for ; Wed, 16 Feb 2011 14:40:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1GEe9qo008600 for ; Wed, 16 Feb 2011 14:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1GEe918008599; Wed, 16 Feb 2011 14:40:09 GMT (envelope-from gnats) Resent-Date: Wed, 16 Feb 2011 14:40:09 GMT Resent-Message-Id: <201102161440.p1GEe918008599@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dominic Fandrey Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3BCD106564A for ; Wed, 16 Feb 2011 14:38:25 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C48B68FC16 for ; Wed, 16 Feb 2011 14:38:25 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1GEcPZx042603 for ; Wed, 16 Feb 2011 14:38:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1GEcPtA042602; Wed, 16 Feb 2011 14:38:25 GMT (envelope-from nobody) Message-Id: <201102161438.p1GEcPtA042602@red.freebsd.org> Date: Wed, 16 Feb 2011 14:38:25 GMT From: Dominic Fandrey To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: gnu/154822: groff_mdoc UTF-8 issue X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 14:40:10 -0000 >Number: 154822 >Category: gnu >Synopsis: groff_mdoc UTF-8 issue >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Feb 16 14:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Dominic Fandrey >Release: RELENG_8 >Organization: private >Environment: FreeBSD mobileKamikaze.norad 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Tue Feb 8 15:38:58 CET 2011 root@mobileKamikaze.norad:/usr/obj/HP6510b-8/amd64/usr/src/sys/HP6510b-8 amd64 >Description: The Aq macro of the doc definition, see groff_mdoc(7), encloses e-mail addresses with angle brackets, like . With a UTF-8 locale like en_GB.UTF-8, it uses a less wide, em-high set of angle brackets for this. While technically correct two issues turn this into a problem. Many fonts do not define that character, resulting in broken output in your terminal emulator of choice. The second problem is that e-mail programs do not recognize the character as an angle bracket. The ASCII compatible <> are understood by e-mail programs, allowing simple copy'n'paste(TM) from manual pages, which is no longer possible when using different angle bracket characters. >How-To-Repeat: env LANG=C man geom env LANG=en_US.UTF-8 geom Jump to the AUTHORS section. >Fix: I propose changing the specification of the Aq macro, not very elegant, but it works. Patch attached with submission follows: --- contrib/groff/tmac/doc.tmac.orig 2011-02-16 14:31:28.000000000 +0100 +++ contrib/groff/tmac/doc.tmac 2011-02-16 14:32:15.000000000 +0100 @@ -1197,8 +1197,8 @@ . if !\n[doc-arg-limit] \ . ds doc-macro-name Aq . -. ds doc-quote-left \[la] -. ds doc-quote-right \[ra] +. ds doc-quote-left < +. ds doc-quote-right > . . doc-enclose-string \$@ .. >Release-Note: >Audit-Trail: >Unformatted: