summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-11-05 16:54:46 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-11-05 16:54:46 +0000
commit81ef896e74697752dccd2c8b58b5e9806df9248b (patch)
tree49e3d2f390c2c78a3a67fe33503942e80424d747
parent3a21f5755b65204a0ee3cfaff5a478b8b18d0bba (diff)
reencode also destination in \special{pdf:dest ...}
git-svn-id: svn://tug.org/texlive/trunk@24510 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/xdvipdfmx/ChangeLog.TL5
-rw-r--r--Build/source/texk/xdvipdfmx/src/spc_pdfm.c9
2 files changed, 7 insertions, 7 deletions
diff --git a/Build/source/texk/xdvipdfmx/ChangeLog.TL b/Build/source/texk/xdvipdfmx/ChangeLog.TL
index 5ebc1a22bd0..d68c4b1ffd7 100644
--- a/Build/source/texk/xdvipdfmx/ChangeLog.TL
+++ b/Build/source/texk/xdvipdfmx/ChangeLog.TL
@@ -1,11 +1,10 @@
ChangeLog.TL: TeX Live (TL) changes for xdvipdfmx
=================================================
-2011-11-05 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+2011-11-06 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* spc_pdfm.c: fix a typo in spc_handler_pdfm_dest().
- disable to reencode pdf string to UTF-16 in modstrings()
- following Heiko Oberdiek.
+ reencode also the destination in \special{pdf:dest ...} to UTF-16.
2011-06-15 Peter Breitenlohner <peb@mppmu.mpg.de>
diff --git a/Build/source/texk/xdvipdfmx/src/spc_pdfm.c b/Build/source/texk/xdvipdfmx/src/spc_pdfm.c
index c9e8a054322..3c0ea9612bb 100644
--- a/Build/source/texk/xdvipdfmx/src/spc_pdfm.c
+++ b/Build/source/texk/xdvipdfmx/src/spc_pdfm.c
@@ -569,12 +569,9 @@ modstrings (pdf_obj *kp, pdf_obj *vp, void *dp)
r = reencodestring(cmap, vp);
}
}
-/* disable to reencode to UTF-16 following Heiko */
-#if 0
else {
r = maybe_reencode_utf8(vp);
}
-#endif
if (r < 0) /* error occured... */
WARN("Failed to convert input string to UTF16...");
}
@@ -1145,7 +1142,11 @@ spc_handler_pdfm_dest (struct spc_env *spe, struct spc_arg *args)
pdf_release_obj(name);
return -1;
}
-
+#ifdef ENABLE_TOUNICODE
+ error = maybe_reencode_utf8(name);
+ if (error < 0)
+ return -1;
+#endif
array = parse_pdf_object(&args->curptr, args->endptr, NULL);
if (!array) {
spc_warn(spe, "Destination not specified for pdf:dest.");