summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/spc_pdfm.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 5edb6fe8bb5..677be28e07c 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-20 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * spc_pdfm.c: If input string is UTF16BE with BOM, do nothing in
+ maybe_reencode_utf8().
+
2014-09-15 Peter Breitenlohner <peb@mppmu.mpg.de>
No reason to use 'long' for 32-bit integers.
diff --git a/Build/source/texk/dvipdfm-x/spc_pdfm.c b/Build/source/texk/dvipdfm-x/spc_pdfm.c
index 368d978d50a..ade813e73a8 100644
--- a/Build/source/texk/dvipdfm-x/spc_pdfm.c
+++ b/Build/source/texk/dvipdfm-x/spc_pdfm.c
@@ -450,6 +450,8 @@ maybe_reencode_utf8(pdf_obj *instring)
return 0; /* no need to reencode ASCII strings */
cp = inbuf;
+ if (inbuf[0] == 0xfe && inbuf[1] == 0xff)
+ return 0; /* no need to reencode UTF16BE with BOM */
op = wbuf;
*op++ = 0xfe;
*op++ = 0xff;