pdf2ps wrapper cannot translate from STDIN (patch included)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cupsys (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
the pdf2ps wrapper in /usr/lib/
tempfile if no file name is given.
It looks like that with the perl in hoary the expression File::Copy::copy(
STDIN,... ) tries to access STDIN as file name instead of file handle. Thus the
filter fails. The simple fix is:
--- /usr/lib/
+++ /usr/lib/
@@ -89,7 +89,7 @@
{
my $tmpfile = $ENV{TMPDIR} . "pdfin.$$.tmp";
open (TEMP, ">$tmpfile" ) || die ("ERROR: pdftops wrapper: $tmpfile: $!\n");
- if (! copy (STDIN, TEMP))
+ if (! copy ( \*STDIN, \*TEMP))
{
Taking.