commit 64b94f81be52de33553cda5db85d824de2119a3c
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Dec 17 12:16:01 2017 +0100
Do not rely on babel quotation macros for encodings other than [O]T1
Babel falls back to OT1 in these cases, which gives wrong output got the
guillemots
Fixes: #10947
---
src/insets/InsetQuotes.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp
index 24be900..00ce4d6 100644
--- a/src/insets/InsetQuotes.cpp
+++ b/src/insets/InsetQuotes.cpp
@@ -880,10 +880,12 @@ void InsetQuotes::latex(otexstream & os, OutputParams
const & runparams) const
// (ligatures not featured)
qstr = quoteparams.getLaTeXQuote(quotechar, "int");
#ifdef DO_USE_DEFAULT_LANGUAGE
- } else if (doclang == "default") {
+ } else if ((doclang == "default"
#else
- } else if (!runparams.use_babel || runparams.isFullUnicode()) {
+ } else if ((!runparams.use_babel
#endif
+ || fontenc_ != "T1" || fontenc_ != "OT1")
+ || runparams.isFullUnicode()) {
// Standard quotation mark macros
// These are also used by babel
// without fontenc (XeTeX/LuaTeX)