all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <stlman@poczta.fm>
To: 22611@debbugs.gnu.org
Subject: bug#22611: 24.4; ps-print.el generates invalid files
Date: Tue, 09 Feb 2016 22:03:39 +0100	[thread overview]
Message-ID: <8760xxa95g.fsf%stlman@poczta.fm> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2808 bytes --]

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 #1.2: fubar-bad.ps --]
[-- Type: application/postscript, Size: 95831 bytes --]

[-- Attachment #1.3: fubar-good.ps --]
[-- Type: application/postscript, Size: 111857 bytes --]

[-- Attachment #2: Type: application/pgp-signature, Size: 602 bytes --]

             reply	other threads:[~2016-02-09 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 21:03 Łukasz Stelmach [this message]
2016-02-09 21:07 ` bug#22611: [PATCH] Call ps-encode-header-string-function for plain strings too Łukasz Stelmach
2016-02-23  3:55   ` Lars Ingebrigtsen
2016-02-10  8:11 ` bug#22611: No dolist required Łukasz Stelmach
2016-02-11  9:06   ` Łukasz Stelmach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760xxa95g.fsf%stlman@poczta.fm \
    --to=stlman@poczta.fm \
    --cc=22611@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.