ghostscript corrupts output when outputing to stdout
Bug #314439 reported by
Dan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghostscript (Ubuntu) |
Fix Released
|
Undecided
|
Till Kamppeter |
Bug Description
Binary package hint: ghostscript
Some postscript files, such as those generated by the Windows PS driver output messages to stdout while executing. For example, the attached file, generated from a Word document, displays the following when ps2pdf is invoked on it:
%%[ ProductName: GPL Ghostscript ]%%
%%[Page: 1]%%
%%[LastPage]%%
When scripts such as ps2pdf are used with the output file set to "-" (i.e., stdout), these messages get included in the output file. Occasionally, this causes corruption of the output file.
The attached debdiffs add the flag -sstdout=%stderr to invocations of gs to redirect these messages to stderr.
Thanks for the patch. I have applied it directly to the upstream Subversion repository of Ghostscript at www.ghostscript .com, as the fix is of interest for all Ghostscript users, not only for Ubuntu users. Ghostscript 8.64 will be released Feb 1st, and then your fix will automatically go into Jaunty.