Do not force singlebyte encoding for listings with XeTeX/LuaTeX.

Fixes: #11056
This commit is contained in:
Juergen Spitzmueller 2018-03-05 15:39:27 +01:00
parent 4bc379ea67
commit cbf2a329c9

View File

@ -127,6 +127,7 @@ Encoding const * InsetListings::forcedEncoding(Encoding const * inner_enc,
// such as XeTeX or LuaTeX are used, and with pLaTeX.
// Minted can deal with all encodings.
if (buffer().params().use_minted
|| inner_enc->name() == "utf8-plain"
|| (buffer().params().encoding().package() == Encoding::japanese
&& inner_enc->package() == Encoding::japanese)
|| inner_enc->hasFixedWidth())