diff -Nru ghostscript-9.04~dfsg/debian/changelog ghostscript-9.04~dfsg/debian/changelog --- ghostscript-9.04~dfsg/debian/changelog 2011-12-02 11:36:04.000000000 +0100 +++ ghostscript-9.04~dfsg/debian/changelog 2011-12-09 14:27:11.000000000 +0100 @@ -1,3 +1,16 @@ +ghostscript (9.04~dfsg-0ubuntu11.4) oneiric-proposed; urgency=low + + * debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch: + Do not use hexadecimal names for type42 Charstrings and Encoding. This fixes + substitution of certain characters by others when converting PDF to + PostScript with the "ps2write" output device (LP: #898532, upstream bug + #692711) + * debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch: + ps2write: Fix conversion of escaped string to Hex string (LP: #902145, + upstream bug #692612). + + -- Till Kamppeter Fri, 9 Dec 2011 13:45:59 +0100 + ghostscript (9.04~dfsg-0ubuntu11.3) oneiric-proposed; urgency=low * debian/rules: Let the ghostscript binary package also provide gs-esp, diff -Nru ghostscript-9.04~dfsg/debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch ghostscript-9.04~dfsg/debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch --- ghostscript-9.04~dfsg/debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch 1970-01-01 01:00:00.000000000 +0100 +++ ghostscript-9.04~dfsg/debian/patches/020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch 2011-12-09 14:25:24.000000000 +0100 @@ -0,0 +1,30 @@ +--- a/base/gdevpdfu.c ++++ b/base/gdevpdfu.c +@@ -1898,7 +1898,26 @@ + oct += str[i+3] - 0x30; + i+=3; + } else { +- oct = str[++i]; ++ switch (str[++i]) { ++ case 'b' : ++ oct = 8; ++ break; ++ case 't' : ++ oct = 9; ++ break; ++ case 'n' : ++ oct = 10; ++ break; ++ case 'f' : ++ oct = 12; ++ break; ++ case 'r' : ++ oct = 13; ++ break; ++ default: ++ oct = str[i]; ++ break; ++ } + } + if (width > 252 && pdev->ForOPDFRead && pdev->ProduceDSC) { + stream_write(pdev->strm, "\n", 1); diff -Nru ghostscript-9.04~dfsg/debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch ghostscript-9.04~dfsg/debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch --- ghostscript-9.04~dfsg/debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch 1970-01-01 01:00:00.000000000 +0100 +++ ghostscript-9.04~dfsg/debian/patches/020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch 2011-12-09 14:25:10.000000000 +0100 @@ -0,0 +1,11 @@ +--- a/Resource/Init/gs_ttf.ps ++++ b/Resource/Init/gs_ttf.ps +@@ -1731,7 +1731,7 @@ + } { + //true + } ifelse { +- dup 16 (01234567) cvrs cvn % glyph char /char ++ dup (01234567) cvs cvn % glyph char /char + 3 1 roll % /char glyph char + 3 index exch % /char glyph [] char + 3 index put % /char glyph diff -Nru ghostscript-9.04~dfsg/debian/patches/series ghostscript-9.04~dfsg/debian/patches/series --- ghostscript-9.04~dfsg/debian/patches/series 2011-11-22 12:02:28.000000000 +0100 +++ ghostscript-9.04~dfsg/debian/patches/series 2011-12-09 14:26:17.000000000 +0100 @@ -14,3 +14,5 @@ 029111114-08dc129-ps2write-truetype-fix.patch 020111122-5cce070-ps2write-postscript-duplex-command-insertion.patch 020111122-cd8f397-ps2write-fix-handling-of-format-4-cmap-subtables-in-truetype-fonts.patch +020111209-5359a2d-do-not-use-hexadecimal-names-for-type42-charstrings-and-encoding.patch +020111125-979f218-ps2write-fix-conversion-of-escaped-string-to-hex-string.patch