X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_latex.cpp;h=534bf48be4bf217360674612de12b7e42c0d2cc9;hb=737e9b2c20b9aa14c91330c83ace13c632c6c816;hp=c9538ca9a66d723a8b9dc32fd5f238a233e0f156;hpb=ed6f569fc897d8418161ebb4871fa9b30f497d86;p=features.git diff --git a/src/output_latex.cpp b/src/output_latex.cpp index c9538ca9a6..534bf48be4 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -697,9 +697,11 @@ ParagraphList::const_iterator TeXOnePar(Buffer const & buf, // If this is the last paragraph, and a local_font was set upon entering // the inset, and we're using "auto" or "default" encoding, the encoding // should be set back to that local_font's encoding. + // However, do not change the encoding when XeTeX is used. if (nextpit == paragraphs.end() && runparams_in.local_font != 0 && runparams_in.encoding != runparams_in.local_font->language()->encoding() - && (bparams.inputenc == "auto" || bparams.inputenc == "default")) { + && (bparams.inputenc == "auto" || bparams.inputenc == "default") + && (!bparams.useXetex)) { runparams_in.encoding = runparams_in.local_font->language()->encoding(); os << setEncoding(runparams_in.encoding->iconvName()); }