From owner-freebsd-doc Thu Jan 2 20:50: 4 2003 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22BCF37B401 for ; Thu, 2 Jan 2003 20:50:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57CD243EC2 for ; Thu, 2 Jan 2003 20:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h034o1NS044911 for ; Thu, 2 Jan 2003 20:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h034o1aW044910; Thu, 2 Jan 2003 20:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F22137B401 for ; Thu, 2 Jan 2003 20:43:11 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC99943ED1 for ; Thu, 2 Jan 2003 20:43:10 -0800 (PST) (envelope-from horikawa@freebsd.org) Received: from localhost (12-252-35-167.client.attbi.com[12.252.35.167]) by sccrmhc01.attbi.com (sccrmhc01) with SMTP id <2003010304430900100j33p2e>; Fri, 3 Jan 2003 04:43:09 +0000 Message-Id: <20030102.214308.74754748.horikawa@attbi.com> Date: Thu, 02 Jan 2003 21:43:08 -0700 (MST) From: Kazuo Horikawa Reply-To: Kazuo Horikawa To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/46709: tables in terminfo.5 are broken Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 46709 >Category: docs >Synopsis: tables in terminfo.5 are broken >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 02 20:50:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Kazuo Horikawa >Release: 5.0-RC2 >Organization: personal user >Environment: terminfo.5 contained in 5.0 current and 5.0-RC2 >Description: Formatted terminfo.5 page shows corrupt tables like: Variable Cap- TCap Description Booleans name Code auto_left_margin bw bw T} auto_right_margin am am T} src/contrib/ncurses/man/MKterminfo.sh produced the corrupt tables. (Is this due to difference between GNU sed and FreeBSD sed?) terminfo.5 is a part of src/contrib/ncurses. >How-To-Repeat: man 5 terminfo >Fix: src/contrib/ncurses/MKterminfo.sh with following change produces correct tables in resulting roff file. --- MKterminfo.sh.bak Thu Jan 2 20:22:55 2003 +++ MKterminfo.sh Thu Jan 2 21:21:06 2003 @@ -64,13 +64,13 @@ unsorted=unsorted$$ trap "rm -f $sorted $temp $unsorted; exit 99" 1 2 5 15 -sed -n <$caps "\ +sed -E -n <$caps "\ /%%-STOP-HERE-%%/q /^#%/s///p /^#/d -s/[ ]\+/ /g +s/[ ]+/ /g s/$/T}/ -s/ [A-Z0-9_()\-]\+ [0-9\-]\+ [Y\-][B\-][C\-][G\-][EK\-]\** / T{/ +s/ [A-Z0-9_()\-]+ [0-9\-]+ [Y\-][B\-][C\-][G\-][EK\-]\** / T{/ s/ bool / /p s/ num / /p s/ str / /p >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message