ghostscript/ghostscript-pdf-charset-conv.patch
2013-08-22 16:42:52 +01:00

18 lines
967 B
Diff

diff -up ghostscript-9.09/devices/vector/gdevpdfe.c.pdf-charset-conv ghostscript-9.09/devices/vector/gdevpdfe.c
--- ghostscript-9.09/devices/vector/gdevpdfe.c.pdf-charset-conv 2013-08-21 15:06:40.000000000 +0100
+++ ghostscript-9.09/devices/vector/gdevpdfe.c 2013-08-22 16:33:24.665075217 +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 {