[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to test a manpage? ‘nroff -man | less’ does not display like ‘man’.

On Wed, Jul 14, 2010 at 10:07:37PM +0200, Daniel Leidert wrote:
> > I don't know if this would help you, but the canonical (lintian) way to 
> > check that everything is OK is like this:
> > 
> > LANG=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l <file> >/dev/null
> You'll of course see the warnings via `... >  /dev/null'. 

Sure ...

> But I fully agree to Manual. This is the usual way to check the manual
> page (at least I always use this):
> LANG=C MANWIDTH=80 man --warning -l <file>

This LANG=C was the old way :-)  See recent bug report on lintian
http://bugs.debian.org/575661 and package uploaded as 2.4.2 on 27 Jun
2010.  Please use UTF-8 locale to get it right.

 LANG=en_US.UTF-8 MANWIDTH=80 man --warnings -E UTF-8 -l <file>

This avoids bogus warning as I understand :-)

Anyway, now I see what to ask for fixing configuration of "mc" to look
into a manpage file directly by fixing /etc/mc/mc.ext:

        Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac | %var{PAGER:more}
        View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) { zsoelim %f 2>/dev/null || cat %f; } | nroff -c -Tlatin1 -mandoc ;; esac

But changing from "nroff -c -Tlatin1 -mandoc" to "man -l -" creates page with
proper table but without color etc. ... any idea to fix this?


Reply to: