Red Hat Bugzilla – Bug 76938
groff uses config file to think everyone's using A4
Last modified: 2007-04-18 12:48:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
Description of problem:
With upgrade to man-1.5j-11, man -t formats incorrectly. If you pipe to lpr,
the margins are wrong, shifted up and to the rights. Also running
enscript-1.6.1-22 from 8.0 upgrade. Same printer, same driver. Everything else
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.From console, type man -t foo | lpr
Actual Results: Margins are wrong, shifted up and to the right for US Letter paper.
Expected Results: Text centered on page as before upgrade.
groff's postscript generator is configured to use A4 paper by default.
I don't know enough about groff for an "official" solution. For a workaround,
edit /usr/share/groff/1.18/font/devps/DESC, changing
papersize /etc/papersize a4
papersize /etc/papersize letter
groff should actually be usuing the locale LC_PAPER to determine the paper size
rather than a local config file. re-assigning to groff.
Groff has an upstream discussion on how to best set the default papersize and
I don't want to change this for the Red Hat Linux sources. Seems LC_PAPERSIZE
will not be used and things stay as they are. /etc/papersize or groff options
are possibilities to override this.
Florian La Roche