diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-09-20 05:40:06 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-09-20 05:40:06 +0000 |
commit | 2b961532bba0d4f8ee63f845a7ff89c1fef8c30a (patch) | |
tree | 0cf76dd3f8db5bf458a8019919ef53ef22502ff1 /Build/source/texk/dvipdfm-x/spc_pdfm.c | |
parent | 040e213897b719be6d5c290feca1bebfa6c40b66 (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/source/texk/dvipdfm-x/spc_pdfm.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_pdfm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |