From owner-freebsd-current@FreeBSD.ORG Sun Jul 31 12:43:48 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17D211065673; Sun, 31 Jul 2011 12:43:48 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id F18388FC0C; Sun, 31 Jul 2011 12:43:47 +0000 (UTC) Received: from delta.delphij.net (unknown [IPv6:2001:470:83bf:0:221:5cff:fe6a:37bb]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id B94D5143D6; Sun, 31 Jul 2011 05:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1312116227; bh=GpUj/OIK2PWhhgaPhCrG7gSO3wYuswvZA7aqjHi0Ewg=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IiD9TeN1jtXQzzTbqmJUQ2pKbKFmUG+MOPYOzSUxAaSbi0Xlh1YQcdycv+i2G39y9 cIBCmZj13J2bhrYS2xpQa57EB+bccR7K9+6iEmNZbecBeiPyrk7ePz6FRqaYPYJxCr mVAq2je43jqzgPYkU9KTJMwrGc37jMoLh1GK0A8s= Message-ID: <4E354DFB.1020206@delphij.net> Date: Sun, 31 Jul 2011 05:43:39 -0700 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: d@delphij.net, ru@FreeBSD.org, FreeBSD Current References: <4E3510CC.8090300@delphij.net> <20110731121732.GB11991@acme.spoerlein.net> In-Reply-To: <20110731121732.GB11991@acme.spoerlein.net> OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: Re: weekly_catman not generating the right result? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2011 12:43:48 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/31/11 05:17, Ulrich Spörlein wrote: > On Sun, 2011-07-31 at 01:22:36 -0700, Xin LI wrote: >> Hi, >> >> I just noticed that weekly_catman is not generating the right >> result, e.g. instead of a highlight NAME, it gives 1mNAME0m (looks >> like the escape character is missing here). >> >> Is this a known issue? > > Now it is :) > > This is due to the recent changes that made groff emit ANSI > sequences and catman(1) is still putting col(1) in the pipe, which is > not really required and gobbles up part of the escape sequences. > > Please try the attached patch. Thanks. Thanks, that fixes the problem. Note that I noticed that setting PAGER to less won't work. Looking at my 8.2-RELEASE system, the rendered catpages are using ^H when highlighting while on -CURRENT it's an escape sequence (but I didn't see any change to nroff script nor catman itself)... Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQEcBAEBCAAGBQJONU37AAoJEATO+BI/yjfBwwkH/2lBNu/Qk+kfYqlknmBN6/f6 1JfwR/oL8ByYwc1wfDVNH9dHFgwwsmkwOja+InJNeSD62Vld8A5kLw7+AopWvsWu WRSu24qq6mP4l82K9mnClHgHEnQxmXa3AIbYcGqiTF1T8AqzVp9iqZfHnC6FDcNI l7EQZZdp3x2Uvx5ATPuTsPaZbWs5gdUC2gKEWBVlUzoIK/U2zQtBw92HbYuOuMcR dViuYNJqetuABre+m0IqslQktmd3/pIwwlJJVoDJ3KYG2SFqZTS1a4cM8dS+dX1U 8JnICR1KfkKiwKyh0QSpnoTtgy2WoCVBb5gwzXofsBZujkUbMCtkChgSxf0ulM8= =pw5b -----END PGP SIGNATURE-----