diff options
Diffstat (limited to 'Build/source/texk/dvipdfm-x/spc_pdfm.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_pdfm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Build/source/texk/dvipdfm-x/spc_pdfm.c b/Build/source/texk/dvipdfm-x/spc_pdfm.c index 44e5725e34e..6538202d79b 100644 --- a/Build/source/texk/dvipdfm-x/spc_pdfm.c +++ b/Build/source/texk/dvipdfm-x/spc_pdfm.c @@ -513,7 +513,8 @@ modstrings (pdf_obj *kp, pdf_obj *vp, void *dp) * needreencode() is assumed to do a simple check if given string * object is actually a text string. */ - r = maybe_reencode_utf8(vp); + if (needreencode(kp, vp, cd)) + r = maybe_reencode_utf8(vp); } if (r < 0) /* error occured... */ WARN("Failed to convert input string to UTF16..."); @@ -1073,13 +1074,6 @@ spc_handler_pdfm_dest (struct spc_env *spe, struct spc_arg *args) return -1; } -/* - * -- FIX ME -- - * Why reencode here for xdv only? If we disable this reencoding, - * it seems that dvi and xdv become consistent with respect to - * \special{pdf:dest...}, when we use \special{pdf:tounicode UTF8-UTF16} - * in both cases. - */ #if 0 if (is_xdv && maybe_reencode_utf8(name) < 0) WARN("Failed to convert input string to UTF16..."); |