Bug 153700

Summary: kghostview-ghostscript 8.61 pipe problem
Product: [Applications] okular Reporter: S. Umar <umar>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: adrian
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: File with viewing problems
Small patch that fixes the viewing problem

Description S. Umar 2007-12-08 23:56:56 UTC
Version:           0.20 (kde 3.5.8) (using KDE KDE 3.5.8)
Installed from:    Fedora RPMs
Compiler:          gcc-4.2.1 
OS:                Linux

Certain files fail to open with kghostview when using ghostscript-8.61. The
problem seems to be related to a change in piping for gs-8.61. See,

    http://bugs.ghostscript.com/show_bug.cgi?id=689577

I shall attach a file that has this problem with kghostview. I am not really
an expert in this but the attached patch seems to be a remedy.

I have not tested printing from kghostview. If the feed to ghostscript
contains - it needs to be replaced by -_.
Thanks
Comment 1 S. Umar 2007-12-08 23:58:22 UTC
Created attachment 22419 [details]
File with viewing problems
Comment 2 S. Umar 2007-12-08 23:59:20 UTC
Created attachment 22420 [details]
Small patch that fixes the viewing problem
Comment 3 S. Umar 2007-12-09 17:44:37 UTC
A patch was committed to ghostscript trunk to solve this problem and it does.
However, the above patch still works and may protect from future ghostscript
changes to the buffer value.
Comment 4 S. Umar 2007-12-10 16:46:20 UTC
Ghostscript people are recommending to keep the "-_" replacement because
they say it is more efficient piping and may prevent future problems.
Comment 5 Adrián Chaves (Gallaecio) 2012-10-18 05:58:23 UTC
Fixed in Ghostscript as stated above.