ghostscript/ghostscript-pdf-charset-conv.patch
2013-08-22 15:37:20 +01:00

18 lines
927 B
Diff

diff -up ghostscript-9.07/base/gdevpdfe.c.pdf-charset-conv ghostscript-9.07/base/gdevpdfe.c
--- ghostscript-9.07/base/gdevpdfe.c.pdf-charset-conv 2013-08-22 15:17:11.883531983 +0100
+++ ghostscript-9.07/base/gdevpdfe.c 2013-08-22 15:17:46.762697347 +0100
@@ -380,10 +380,10 @@ pdf_xmp_write_translated(gx_device_pdf *
}
memset(buf1, 0x00, (j * sizeof(UTF16)) + 2);
for (i = 0; i < j; i++) {
- if (buf0[i] <= 0x7f || buf0[0] >= 0xAE) {
- if (buf0[0] == 0x7f) {
+ if (buf0[i] <= 0x7f || buf0[i] >= 0xAE) {
+ if (buf0[i] == 0x7f) {
emprintf1(pdev->memory, "PDFDocEncoding %x cannot be represented in Unicode\n",
- buf0[0]);
+ buf0[i]);
} else
buf1[(i * 2) + 3] = buf0[i];
} else {