From 1fd4aaefd61b2db766e328767d0bcefa47a589d6 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 17 Feb 2015 21:19:05 +0100 Subject: [PATCH] Fix regression of eb121f999 Again thanks to Scott for finding this. The removal of the check for full unicode in eb121f999 was not wanted. Now listings can be exported to lualatex and xetex again. --- src/LaTeXFeatures.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index aa52ec4ffb..5c70dfb867 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -1593,7 +1593,8 @@ docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel, bool use_po // need to force a fixed width encoding for // \lstlistlistingname and \lstlistingname (bug 9382). // This needs to be consistent with InsetListings::latex(). - bool const need_fixedwidth = it->second.fixedwidthpreambleencoding(); + bool const need_fixedwidth = !runparams_.isFullUnicode() && + it->second.fixedwidthpreambleencoding(); // language dependent commands (once per document) snippets.insert(i18npreamble(it->second.langpreamble(), buffer().language(), -- 2.39.2