From 7538a23c15f2aa057fc2a06cfe8f00534e3e96ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 28 Nov 2010 17:43:22 +0000 Subject: [PATCH] * Buffer.cpp (makeLaTeXFile): - With XeTeX/LuaTeX and tex fonts, we need to force the encoding to utf8-plain manually. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36558 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index a902e26255..36b427eaa6 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1233,6 +1233,11 @@ bool Buffer::makeLaTeXFile(FileName const & fname, { OutputParams runparams = runparams_in; + // This is necessary for LuaTeX/XeTeX with tex fonts. + // See FIXME in BufferParams::encoding() + if (runparams.isFullUnicode()) + runparams.encoding = encodings.fromLyXName("utf8-plain"); + string const encoding = runparams.encoding->iconvName(); LYXERR(Debug::LATEX, "makeLaTeXFile encoding: " << encoding << "...");