With ghostscript 9.07, libspectre-based viewers like evince and okular can't display .ps files anymore. Reverting to 9.06 fixes it.
Giving some files https://bugs.kde.org/attachment.cgi?id=77770 https://bugs.kde.org/attachment.cgi?id=77771
using LANG=C fixes it, i.e. LANG=C okular myfile.eps LANG=C evince myfile.eps Will make it work
Talked to the ghostcript devels and they agree it's a bug in their side, for now they said we can workaround it by adding char *lala = setlocale(LC_ALL, "POSIX"); gsaspi_call setlocale(LC_ALL, lala); to our code. Carlos, what do you think?
(In reply to comment #3) > Talked to the ghostcript devels and they agree it's a bug in their side, for > now they said we can workaround it by adding > char *lala = setlocale(LC_ALL, "POSIX"); > gsaspi_call > setlocale(LC_ALL, lala); > > to our code. for every call to the GS API? > Carlos, what do you think? The problem of that hack is that setlocale might affect other threads currently running. Do we know which versions exactly are affected by this bug? Is it fixed already? is there a patch distros could apply?
(In reply to comment #4) > (In reply to comment #3) > > Talked to the ghostcript devels and they agree it's a bug in their side, for > > now they said we can workaround it by adding > > char *lala = setlocale(LC_ALL, "POSIX"); > > gsaspi_call > > setlocale(LC_ALL, lala); > > > > to our code. > > for every call to the GS API? That's what they said > > > Carlos, what do you think? > > The problem of that hack is that setlocale might affect other threads > currently running. Oh, that's bad > Do we know which versions exactly are affected by this > bug? 9.07 > Is it fixed already? is there a patch distros could apply? No clue, i told them on IRC and they said the bug has been there forever, but it's not since with 9.06 it works, they said they'd fix it but can't find anything in their git log that says it's been fixed. Going to download and compile now to try here
Tried last git version and still fails :_/
Upstream bug http://bugs.ghostscript.com/show_bug.cgi?id=693843
That's been fixed upstream, we can probably close this bug and just hope distros patch their stuff
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.