Bug 196982 - something broke between FC4 and FC5?
Summary: something broke between FC4 and FC5?
Alias: None
Product: Fedora
Classification: Fedora
Component: ghostscript
Version: 5
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2006-06-27 22:34 UTC by james
Modified: 2008-01-10 13:11 UTC (History)
0 users

Clone Of:
Last Closed: 2008-01-10 13:11:55 UTC

Attachments (Terms of Use)
Document1.ps (24.36 KB, text/plain)
2006-12-15 16:22 UTC, Tim Waugh
no flags Details

Description james 2006-06-27 22:34:00 UTC
Description of problem:
Hmm - this latest version of ghostscript can no longer read
WordPerfect8-generated postscript files which were generated after around the
summer of 2004.  These later files most noticeably now have the top line
"12345X@PJL ENTER LANGUAGE = POSTSCRIPT".  Everything was working fine on FC4.

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

How reproducible:
Every time.

Steps to Reproduce:
1. gv <file> or lpr <file>
Actual results:
ESP Ghostscript 815.02: Unrecoverable error, exit code 1

Expected results:

Additional info:
These newly-become problem postscipt files were all generated with WordPerfect
8.  Other files, mostly graphic image postscript files, and postscipt recently
generated from pdf, still seem to work normally.  A "problem-file" is attached.

Comment 1 Tim Waugh 2006-06-28 07:22:20 UTC
This sounds like a PJL-encapsulated PostScript job, so perhaps something like
this is what's needed:


I didn't think that ghostscript intentionally stripped PJL before.  Could you
attach the file in question please?  Thanks.

Comment 2 james 2006-07-28 19:46:23 UTC
Did you get the test file I sent?

This is still a problem for me since I have to print reports every month with WP.

Comment 3 Tim Waugh 2006-12-15 15:32:26 UTC
No, there is no attachment to this bug report.

Comment 4 Tim Waugh 2006-12-15 16:22:05 UTC
Created attachment 143781 [details]

[sent by email]

Comment 6 Espen Stefansen 2007-04-26 17:28:42 UTC
I just had a look at this and it seems that it's the line containing 
setpagedevice and PreferredMediaSelection that fails. 

If u remove "PreferredMediaSelection true" from line 392, the document is 

Comment 7 james 2007-04-26 18:34:27 UTC
Yes!  Thanks for looking at that.  That difference seems to be consistent 
across other working and non-working postscript files I have.

There are two WordPerfect files which contain that term - err, which is 
not "PreferredMediaSelection", but correctly "DeferredMediaSelection":

This was not a change between FC4 and FC5, but instead, my starting to use an 
HP LaserJet 4 Plus around that time, which apparently makes use of the 
shlib10/hpla4pps.prs file.

The remaining question would be: Is there anything wrong with the way 
ghostscript is interpreting that line, or is that line invalid postscript from 

Comment 8 Tim Waugh 2008-01-10 13:11:55 UTC
This seems to work fine now in Fedora 8 (ghostscript-8.61-5.fc8).

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