Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851141 - app-text/ghostscript-gpl-9.56.1 breaks printing non-ASCII chars (from PDF files in evince)
Summary: app-text/ghostscript-gpl-9.56.1 breaks printing non-ASCII chars (from PDF fil...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: 862133
  Show dependency tree
 
Reported: 2022-06-11 07:20 UTC by Michał Górny
Modified: 2022-08-02 03:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 07:20:48 UTC
When printing PDF files from Evince with text containing non-ASCII characters (e.g. my name), the characters outside "latin 1" range aren't printed, e.g. "Górny Michał" gets printed as "Górny Micha[space]".

ghostscript-gpl-9.55.0 works fine.

Printer: HP LaserJet Professional P1606dn
CUPS driver: HP LaserJet Series PCL 4/5 (grayscale, 2-sided printing)
(connected over network)
Comment 1 Guillaume Ayoub 2022-06-11 09:05:04 UTC
You’re right Sam, bug 844115 seems to be related. The sample provided in 844115 includes characters encoded on 2 bytes, and the rendering puts spaces between characters. It really looks like an encoding decoding problem.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-11 09:42:54 UTC
(In reply to Guillaume Ayoub from comment #1)
> You’re right Sam, bug 844115 seems to be related. The sample provided in
> 844115 includes characters encoded on 2 bytes, and the rendering puts spaces
> between characters. It really looks like an encoding decoding problem.

OK, so I see some commits upstream which could be relevant, but it doesn't really make sense if the Arch or Fedora binaries work..

https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=506f35e174c4672678512af56e8de75e475e0301

Could one of you maybe try ghostscript's 9.57 RC?
Comment 3 Guillaume Ayoub 2022-06-13 19:56:30 UTC
(In reply to Sam James from comment #2)
> (In reply to Guillaume Ayoub from comment #1)
> > You’re right Sam, bug 844115 seems to be related. The sample provided in
> > 844115 includes characters encoded on 2 bytes, and the rendering puts spaces
> > between characters. It really looks like an encoding decoding problem.
> 
> OK, so I see some commits upstream which could be relevant, but it doesn't
> really make sense if the Arch or Fedora binaries work..
> 
> https://git.ghostscript.com/?p=ghostpdl.git;a=commit;
> h=506f35e174c4672678512af56e8de75e475e0301
> 
> Could one of you maybe try ghostscript's 9.57 RC?

I’ve tried the current master branch, it doesn’t fix the bug.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-17 19:31:36 UTC
In my experience, upstream are quite friendly and may have tips to help us narrow this down.
Comment 5 Larry the Git Cow gentoo-dev 2022-08-02 03:39:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7e7e2e1e67ce3374bafba51b9cdd271f29b48d2

commit a7e7e2e1e67ce3374bafba51b9cdd271f29b48d2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-02 03:38:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-02 03:38:57 +0000

    profiles: mask broken ghostscript-gpl-9.56.1
    
    We should've done this earlier, even.
    
    Bug: https://bugs.gentoo.org/844115
    Bug: https://bugs.gentoo.org/851141
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 4 ++++
 1 file changed, 4 insertions(+)