On 2015-10-25, Guenter Milde wrote: > On 2015-10-25, Georg Baum wrote: >> Guenter Milde wrote:
>>> I'll commit the patch for the patch and hope this will solve some more of >>> the automatic XeTeX tests. >> Please do. > It is in. > Scott, could you please test if this fixes some more export tests? Actually, the patch does now what Georg expected the old patch to do: set encoding to ASCII for every use of XETEX, also with non-TeX fonts. This fails with characters without a LICR defined by "xunicode". So the current best known version would be to admit the limit: Günter diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 73d2007..0d621b1 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1588,8 +1588,9 @@ bool Buffer::makeLaTeXFile(FileName const & fname, // XeTeX with TeX fonts is only safe with ASCII encoding, // See #9740 and FIXME in BufferParams::encoding() - if (!params().useNonTeXFonts && (runparams.flavor == OutputParams::XETEX)) - runparams.encoding = encodings.fromLyXName("ascii"); + // However, the code below also sets "ascii" for XeTeX with non-TeX fonts (why?) + // if (!params().useNonTeXFonts && (runparams.flavor == OutputParams::XETEX)) + // runparams.encoding = encodings.fromLyXName("ascii"); string const encoding = runparams.encoding->iconvName(); LYXERR(Debug::LATEX, "makeLaTeXFile encoding: " << encoding << ", fname=" << fname.realPath()); Günter