commit 8e88d100f152946944a26087231836dd2e34c902
Author: Günter Milde <[email protected]>
Date: Mon May 6 08:52:24 2019 +0200
"unicode=true" leads to errors for Japanese with "platex" even when using
utf8-encoded latex source.
The bxjsbook class raises an error if seeing this option
(before TL19 only a warning). Other document classes just ignore
it and PDF-bookmarks are wrongly encoded in any case.
---
src/PDFOptions.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/PDFOptions.cpp b/src/PDFOptions.cpp
index d64cc29..0b5b139 100644
--- a/src/PDFOptions.cpp
+++ b/src/PDFOptions.cpp
@@ -105,8 +105,7 @@ void PDFOptions::writeLaTeX(OutputParams & runparams,
otexstream & os,
// with the hyperref option "unicode".
// (With Xe/LuaTeX and pTeX, unicode=true is the default
// and the option leads to errors with some Japanese document classes)
- if (!runparams.isFullUnicode()
- && (!runparams.use_japanese || runparams.encoding->iconvName()
== "UTF-8"))
+ if (!runparams.isFullUnicode() && !runparams.use_japanese)
opt += "unicode=true,";
// only use the hyperref settings if hyperref is enabled by the user