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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 862133
  Show dependency tree
 
Reported: 2022-06-11 07:20 UTC by Michał Górny
Modified: 2022-10-02 03:15 UTC (History)
3 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(+)
Comment 6 Larry the Git Cow gentoo-dev 2022-10-01 06:56:26 UTC
The bug has been closed via the following commit(s):

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

commit 21675840cadb15ceb9e3597f43da2f199d70240a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-01 06:54:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-01 06:54:40 +0000

    profiles: unmask ghostscript 9.56
    
    Closes: https://bugs.gentoo.org/844115
    Closes: https://bugs.gentoo.org/851141
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 4 ----
 1 file changed, 4 deletions(-)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-01 06:56:59 UTC
See https://bugs.gentoo.org/844115#c27.
Comment 8 Larry the Git Cow gentoo-dev 2022-10-02 03:15:20 UTC
The bug has been closed via the following commit(s):

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

commit e22155a75b4d1b45115719ea6c1db112614b449d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-02 03:14:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-02 03:14:41 +0000

    dev-python/weasyprint: adjust ghostscript dep
    
    I made an error in the poppler-data original fix, so depend on fixed
    GS again (with a fixed dep).
    
    Closes: https://bugs.gentoo.org/844115
    Closes: https://bugs.gentoo.org/851141
    Closes: https://bugs.gentoo.org/873889
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/weasyprint/weasyprint-55.0.ebuild | 2 +-
 dev-python/weasyprint/weasyprint-56.0.ebuild | 2 +-
 dev-python/weasyprint/weasyprint-56.1.ebuild | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

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

commit 541c89d3edb13847d272b6b700fde7505830dea0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-02 03:14:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-02 03:14:08 +0000

    app-text/ghostscript-gpl: crank up poppler-data dep again
    
    I typo'd the paths previously.
    
    Closes: https://bugs.gentoo.org/844115
    Closes: https://bugs.gentoo.org/851141
    Closes: https://bugs.gentoo.org/873889
    Signed-off-by: Sam James <sam@gentoo.org>

 ...hostscript-gpl-9.56.1-r2.ebuild => ghostscript-gpl-9.56.1-r3.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit f12b8ad09be64a20685b7c87fdb4dbbc2b7f8a56
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-02 03:12:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-02 03:13:39 +0000

    app-text/poppler-data: fix extra file paths
    
    Closes: https://bugs.gentoo.org/844115
    Closes: https://bugs.gentoo.org/851141
    Closes: https://bugs.gentoo.org/873889
    Fixes: f7d3daf96af5d450b3f983df77129c5aeac3c376
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/poppler-data/Manifest                                          | 2 +-
 .../{poppler-data-0.4.11-r1.ebuild => poppler-data-0.4.11-r2.ebuild}    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)