A2ps - man page printing problem

Aaron Konstam akonstam at sbcglobal.net
Mon Aug 20 14:45:16 UTC 2007


On Mon, 2007-08-20 at 13:40 +0100, John Horne wrote:
> Hello,
> 
> I'm using F7 (64-bit) and a2ps version 4.13b-65. I tried to print out
> the 'visudo' man page on a postscript printer using the command:
> 
>     man visudo | a2ps -=lp -m
> 
> The man page was printed, but some parts of it were incorrect. Where the
> man page shows on my PC:
> 
>    digits, and the underscore (’_’) character.
> 
> The printed man page has:
> 
>    digits, and the underscore (aM-^@M-^Y_aM-^@M-^Y) character.
> 
> The 'a' in each case actually has a caret ('^') over it. Sending the
> a2ps output to a postscript file shows that the postscript has the same
> 'aM-^@M...' in it.
> 
> Other parts of this man page, and other man pages, also have odd
> characters in it, so it's not just this one piece of the man page that
> is causing a problem.
> 
> Does anyone know how I can get the correct man page output? Obviously
> the man page itself is okay since it shows on my PC correctly. Whether
> a2ps is the problem, or perhaps nroff/groff or whatver it uses to handle
> the man page, I don't know.
> 
> 
> Thanks,
> 
> John.
To really do the job the following will work well:
man visudo |mpage -1 -P<printer-name>

notice the violatiion of usual syntax that there is no blank after the
-P.
--
=======================================================================
If entropy is increasing, where is it coming from?
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net




More information about the users mailing list