summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2023-04-06 17:15:37 +0100
committerKen Sharp <ken.sharp@artifex.com>2023-04-06 17:15:37 +0100
commitdd3a13d7a1f5d22df2ceb958d262393965a99a7e (patch)
tree314210540753b898686715c8e0219409329d3d22
parent7eced55b5700c0d2aa2e102ed78f10b0ce755a64 (diff)
downloadghostpdl-dd3a13d7a1f5d22df2ceb958d262393965a99a7e.tar.gz
pdfwrite - don't replace UTF16 > 0x800 with the replacement glyph
Bug #706551 "ps2pdf corrupts Unicode title in PDF 1.4 XML metadata" In fact the XMP metadata string is not 'corrupted' we simply replace all UTF16 values > 0x800 with the Unicode replacement glyph. This was to do with some investigations back in 2016 which never came to anything. Simply promote UTF16 values > 0x800 to 3 bytes.
-rw-r--r--devices/vector/gdevpdfe.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/devices/vector/gdevpdfe.c b/devices/vector/gdevpdfe.c
index c1d9cbfb5..db0c0b883 100644
--- a/devices/vector/gdevpdfe.c
+++ b/devices/vector/gdevpdfe.c
@@ -385,7 +385,6 @@ static int gs_ConvertUTF16(unsigned char *UTF16, size_t UTF16Len, unsigned char
bytes = 2;
} else {
bytes = 3;
- U16 = 0xFFFD;
}
}
if (UTF8 + bytes > UTF8End)