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

Re: Problem printing man pages (Correction)



On Fri, Jan 31, 2003 at 09:47:32AM -0500, Wayne Topa wrote:
> Wayne Topa(brittman@capital.net) is reported to have said:
> > Not sure I get what you mean but here is what is happening.
> > I can do 'man man' and it displays fine on the screen ie no formating
> > characters.  I do recall it did display the control chars for a short
> > time but that was a long time ago.
> > 
> > If I do 
> > man man | a2ps -2 --catman 
> > or
> > man man | a2ps
> > or
> > man man | lpr
> > or
> > man man | lp
> 
> I used man 'man' as an example.  It turns out it was a bad example as
> the above commands print the man manpages correctly!
> 
> Changing the 'man man' to 'man apt-file' would be a correct example.

I bet I know what's happened, then: you have some old cat pages in
/var/cache/man that were cached with a groff that output the ANSI SGR
escapes. Clean out everything in `find /var/cache/man -name cat\*` and
try again.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: