Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 25735
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Martin Schlemmer (RETIRED) <azarah@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: splite <splite-gentoo@sigint.cs.purdue.edu>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
patch2 patch to sys-apps/groff/files/groff-man-UTF-8.diff patch splite 2003-08-01 17:04 0000 566 bytes Details | Diff
groffbug output of "man -t man > /tmp/groffbug" text/plain splite 2003-08-02 15:53 0000 24.53 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 25735 depends on: Show dependency tree
Bug 25735 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-08-01 17:02 0000
The groff patch "groff-man-UTF-8.diff" inserts a trailing blank line into
/usr/share/groff/site-tmac/man.local that causes "man -t" to output an initial
blank page.  Royally screws duplex printing.  Patch to the patch attached.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From splite 2003-08-01 17:04:28 0000 -------
Created an attachment (id=15346) [details]
patch to sys-apps/groff/files/groff-man-UTF-8.diff

------- Comment #2 From Martin Schlemmer (RETIRED) 2003-08-02 08:51:34 0000 -------
What is the issue here ?  Could you do a 'man -t man &> foo' and attach
foo ?

------- Comment #3 From splite 2003-08-02 15:52:02 0000 -------
Sure.  When you run that command, then run your favorite PostScript viewer  
on foo, do you not see a blank page 1, followed by the real page 1?
 
The issue is the blank line at the bottom of 
/usr/share/groff/site-tmac/man.local.  Since it's not part of a macro,
*roff sees it as part of the document and outputs a "blank" (actually 
contains a single newline) page 1.  Also screws up the footer macro, as
.TH hasn't been run yet:
 
% zcat /usr/man/man1/pwd.1.gz | troff -b -ww -man-old > /dev/null
/usr/share/groff/1.18.1/tmac/an-old.tmac:251: backtrace: trap-invoked macro `an-
p-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:217: backtrace: trap-invoked macro `an-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:160: backtrace: macro `TH'
<standard input>:2: warning: `an-extra2' not defined
/usr/share/groff/1.18.1/tmac/an-old.tmac:251: backtrace: trap-invoked macro `an-p-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:217: backtrace: trap-invoked macro `an-footer'
/usr/share/groff/1.18.1/tmac/an-old.tmac:160: backtrace: macro `TH'
<standard input>:2: warning: `an-extra1' not defined
 
Remove the blank line and the warnings and extra page go away.

------- Comment #4 From splite 2003-08-02 15:53:21 0000 -------
Created an attachment (id=15397) [details]
output of "man -t man > /tmp/groffbug"

No stderr output.

------- Comment #5 From Martin Schlemmer (RETIRED) 2003-08-04 12:02:31 0000 -------
Fixed in -r3, thanks.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug