summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-09-20 05:40:06 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-09-20 05:40:06 +0000
commit2b961532bba0d4f8ee63f845a7ff89c1fef8c30a (patch)
tree0cf76dd3f8db5bf458a8019919ef53ef22502ff1 /Build
parent040e213897b719be6d5c290feca1bebfa6c40b66 (diff)
texk/dvipdfm-x/spc_pdfm.c: Do nothing for UTF16BE with BOM in maybe_reencode_utf8()
git-svn-id: svn://tug.org/texlive/trunk@35215 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-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;