commit 5fb2566572a51f65b9571568b9b515f023173c2c
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Mar 5 15:39:27 2018 +0100

    Do not force singlebyte encoding for listings with XeTeX/LuaTeX.
    
    Fixes: #11056
    (cherry picked from commit cbf2a329c94fcd531dbee41d64cf199a3ee6bb4b)
---
 src/insets/InsetListings.cpp |    1 +
 status.23x                   |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp
index d66112e..d106da3 100644
--- a/src/insets/InsetListings.cpp
+++ b/src/insets/InsetListings.cpp
@@ -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())
diff --git a/status.23x b/status.23x
index 84020ef..3d1d7b6 100644
--- a/status.23x
+++ b/status.23x
@@ -64,6 +64,8 @@ What's new
 
 - Fix list of viewable formats in view/update menu (bug 11044).
 
+- Fix encoding problems with listings insets and non-TeX fonts (bug 11056).
+
 
 * INTERNALS
 

Reply via email to