Bug 831211 - gpg-key2ps creates unusable PostScript
gpg-key2ps creates unusable PostScript
Product: Fedora
Classification: Fedora
Component: pgp-tools (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jochen Schmitt
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-06-12 09:53 EDT by Stefan Jensen
Modified: 2013-08-01 13:15 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-01 13:15:00 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Stefan Jensen 2012-06-12 09:53:37 EDT
Description of problem:

gpg-key2ps creates unusable PostScript

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. /usr/bin/gpg-key2ps $some-id >> paper.ps
2. evince paper.ps
Actual results:

Document can't be loaded

Expected results:

Document displayed

Additional info:

Failed to load with gimp too, the PostScript seems broken.
Comment 1 Jochen Schmitt 2012-06-13 14:44:15 EDT
Sorry, I could not reproduced your issue. It may be nice, if you can
try to run ghostscript agains your file to get any error message
from the Postscript interpreter.
Comment 2 Stefan Jensen 2012-06-13 15:55:59 EDT
I run these two lines, that produce a Ghostscript error:

1.) $gpg-key2ps 0xDC405527 >> paper
2.) $ps2pdf paper.ps

Error: /undefined in 595,276
Operand stack:
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1894   1   3   %oparray_pop   1893   1   3   %oparray_pop   1877   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Current file position is 176
GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Feel free to let me do other testings.

best regards
Comment 3 Stefan Jensen 2012-11-04 11:24:13 EST
Just found out, that the Package "libpaper" maybe cause this problem.

With libpaper uninstalled, both are working fine:

# gpg-key2ps 0xDC405527 >> paper.ps
# $ps2pdf paper.ps

best regards
Comment 4 Alex Cherepanov 2013-06-15 01:03:50 EDT
This looks like a locale problem. PostScript always works in C locale.
595,276 is the width of A4 paper in points.
210/25.4*72 = 595.2755905511812
Comment 5 Alex Cherepanov 2013-06-15 01:15:18 EDT
Probably, the easiest approach to this problem is conversion
of the page dimensions to integers. Higher precision is pointless,
because PostScript matches media requests with the tolerance of +/- 5 points.
Comment 6 Jochen Schmitt 2013-06-16 10:54:49 EDT
The issue seems, that paperconf delivering localized information about the 
papersize. I have create a patch included in pgp-tools-1.1.4-1.fc20. It
may be nice, if anyone can tryout this package from rawhide.
Comment 7 Fedora End Of Life 2013-07-04 01:56:01 EDT
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.
Comment 8 Fedora End Of Life 2013-08-01 13:15:22 EDT
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Note You need to log in before you can comment on or make changes to this bug.