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

Fixes: #11056
(cherry picked from commit cbf2a329c9)
This commit is contained in:
Juergen Spitzmueller 2018-03-05 15:39:27 +01:00
parent 7a474a8e8b
commit fb6e4776a0
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -64,6 +64,8 @@ What's new
- Fix list of viewable formats in view/update menu (bug 11044). - Fix list of viewable formats in view/update menu (bug 11044).
- Fix encoding problems with listings insets and non-TeX fonts (bug 11056).
* INTERNALS * INTERNALS