mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-30 15:41:12 +00:00
de3e5280f6
We open the input file now twice: The first time in latin1 encoding to read the document encoding from the preamble. This does always work, since traditional TeX does not allow non-ASCII contents without an encoding changing command (except for comments, but we do not need them, and using latin1 rather than utf8 ensures that they do not produce an iconv exception, but are simply recored with wrong characters), and we do detect the utf8 based TeX engines XeTeX and LuaTeX as well. The second time we open the file directly with the document encoding. This fixes a few tex2lyx tests on OS X, since changing the encoding of an open file steam does not work with clang on OS X. Files using more than one encoding are still broken, but all single-encoding files are fixed now. |
||
---|---|---|
.. | ||
test | ||
.gitignore | ||
boost.cpp | ||
CMakeLists.txt | ||
Context.cpp | ||
Context.h | ||
dummy_impl.cpp | ||
Makefile.am | ||
math.cpp | ||
Parser.cpp | ||
Parser.h | ||
Preamble.cpp | ||
Preamble.h | ||
table.cpp | ||
tex2lyx.1in | ||
tex2lyx.cpp | ||
tex2lyx.h | ||
text.cpp | ||
TODO.txt |