weekly_catman not generating the right result?
Ulrich Spörlein
uqs at spoerlein.net
Sun Jul 31 13:57:07 UTC 2011
On Sun, 2011-07-31 at 05:43:39 -0700, Xin LI wrote:
> 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)...
The change that did this is r222648. You'll need to use `less -Rs' as
your PAGER/MANPAGER (or export LESS=-Rs).
It's debatable if we want catpages to retain the old way of marking up
bold and underlined text.
Ruslan: bsd.doc.mk was told to not use SGR in r222647, does it make
sense to do the same for catpages?
Uli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20110731/7ec49862/attachment.pgp
More information about the freebsd-current
mailing list