bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22611: 24.4; ps-print.el generates invalid files


From: Łukasz Stelmach
Subject: bug#22611: 24.4; ps-print.el generates invalid files
Date: Tue, 09 Feb 2016 22:03:39 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.4 (gnu/linux)

ps-print.el generates invalid PostScript when called from Gnus to print
an article (gnus-summary-print-article). Some glyphs are missing from
the BitmapDict as well as from Exxxx dictionaries.

To reproduce the bug let there be a buffer named "ZAŻÓŁĆ" containing the
following string:

    Zażółć gęślą jaźń

In this buffer evaluate the following form:

    (let ((ps-left-header (list "fubar")))
      (ps-spool-buffer)
      (ps-despool "/tmp/fubar.ps"))

When viewing the file under gv (gv 1:3.7.4-1, ghostscript
9.06~dfsg-2+deb8u1, on Debian jessie). There is an empty grey header
box, and the following error message is displayed on the page.

--8<---------------cut here---------------start------------->8---
# ERROR: undefined
# OFFENDING COMMAND: get

# STACK:

/.notdef
-dictionary-
-dictionary-
[[/h0 {PageNumber 32 string cvs ShowNofN {(/)strcat PageCount 32 string
cvs strcat }if }][/h1 (09.02.2016)]]
true


# ERRORINFO:
--8<---------------cut here---------------end--------------->8---

Please find the faulty fubar-bad.ps and fubar-good.ps attached. The
latter has been generated after applying the patch that will follow this
message. The patch has been created on the master branch.

I've tested it only on Debian 8 with bdf fonts, so please make sure the
patch won't introduce any regressions.

In GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.5)
 of 2015-03-07 on binet, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11604000
System Description:     Debian GNU/Linux 8.3 (jessie)

Configured using:
 `configure --build i586-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --build i586-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
 
--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat
 -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LANG: pl_PL.UTF-8
  locale-coding-system: utf-8-unix

-- 
Było mi bardzo miło.                                  --- Rurku. --- ...
>Łukasz<                                --- To dobrze, że mnie słuchasz.

Attachment: fubar-bad.ps
Description: PostScript document

Attachment: fubar-good.ps
Description: PostScript document

Attachment: pgp0myLP0xwbs.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]