From be1b8b9b202d4e460eb848067fd451c8da04ef29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnter=20Milde?= Date: Mon, 6 May 2019 08:52:24 +0200 Subject: [PATCH] "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 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/PDFOptions.cpp b/src/PDFOptions.cpp index d64cc2975e..0b5b139e95 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 -- 2.39.5