From 7e01069c5a6e4f43c19df54a01bc223e865b18ae Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 28 Mar 2025 14:29:24 -0400 Subject: [PATCH] Fix UTF-16 LE support (Issue #112) --- pdfio-dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdfio-dict.c b/pdfio-dict.c index ee635ae..f8aadc6 100644 --- a/pdfio-dict.c +++ b/pdfio-dict.c @@ -528,7 +528,7 @@ pdfioDictGetString(pdfio_dict_t *dict, // I - Dictionary *tempptr = '\0'; } - else if (!(value->value.binary.datalen & 1) && !memcmp(value->value.binary.data, "\376\377", 2)) + else if (!(value->value.binary.datalen & 1) && !memcmp(value->value.binary.data, "\377\376", 2)) { // Copy UTF-16 LE int ch; // Unicode character