Your message dated Mon, 17 May 2010 08:33:17 +0200
with message-id <20100517063317.gw21...@jones.dk>
and subject line Re: Bug#581810: ghostscript: Incorrect Unicode Decoding
resource
has caused the Debian Bug report #581810,
regarding ghostscript: Incorrect Unicode Decoding resource
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
581810: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581810
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ghostscript
Version: 8.71~dfsg-4
Severity: important
Tags: sid
A program of mine that renders text by converting it to Unicode
encoding recently stopped working. The following PostScript sequence
illustrates the problem:
----
/tmpstr 255 string def
/Unicode /Decoding findresource
dup length dict /UnicodeEncode exch def
{exch UnicodeEncode 3 1 roll put} forall
32 1 126
{
dup tmpstr cvs print ( => ) print
dup UnicodeEncode exch known
{
UnicodeEncode exch get tmpstr cvs
}
{
(?)
}
ifelse
print
(\n) print
}
for
----
This gets the Unicode decoding resource and prints out the mapping from
printable ASCII characters to corresponding glyph names. Part of its
output is shown below:
104 => h
105 => i
106 => LJ010000
107 => LK010000
108 => LL010000
109 => LM010000
110 => n
111 => o
What are those "LJxxx", "LKxxx" etc glyph names? Similar odd names appear
at other places in the output. They fail to map to valid glyphs in the font,
and I end up with gaps in the text layout.
Ghostscript also displays the message "Warning: the map file cidfmap was not
found"
each time it starts. Could this be related?
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_NZ.utf8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ghostscript depends on:
ii debconf [debc 1.5.32 Debian configuration management sy
ii debianutils 3.2.3 Miscellaneous utilities specific t
ii defoma 0.11.11 Debian Font Manager -- automatic f
ii ghostscript [ 8.71~dfsg-4 The GPL Ghostscript PostScript/PDF
ii gs-common 8.71~dfsg-4 Dummy package depending on ghostsc
ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4 Fonts for the Ghostscript interpre
ii libc6 2.10.2-7 Embedded GNU C Library: Shared lib
ii libgs8 8.71~dfsg-4 The Ghostscript PostScript/PDF int
Versions of packages ghostscript recommends:
pn psfontmgr <none> (no description available)
ghostscript suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
On Mon, May 17, 2010 at 12:23:55PM +1200, Lawrence D'Oliveiro wrote:
Sorry, I figured out what the problem was: the Decoding dictionary
has multiple entries for the same character code. The bug is in my
code; that it didn’t show up before was probably because the entries
happened to be returned in just the right order.
Please close this bug as invalid.
Done with this email (by appending -done to the user part of the BTS
email address).
Thank you.
Well, thank you for being suspicious and reporting in the first place!
And apologies for being silent: I have a terrible habit of only
commenting when I have some new input - and unfortunately I am not that
much of an expert in Postscript (and others in the ghostscript team
apparently is quite busy with other things).
Please do not hesitate to file other bugreports. They are highly
appreciated, even if not responded to, and even if they turn out not to
be bugs after all.
Kind regards,
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: Digital signature
--- End Message ---