Jürgen Spitzmüller wrote:
http://bugzilla.lyx.org/show_bug.cgi?id=3522
reviewed and approved by Georg.
The patch does the following:
- it moves all the encoding checks in BufferParams::writeLaTeX to
an own function "writeEncodingPreamble" and (so in BufferParams.cpp
most is just code-shuffling)
- accesses that from PreviewLoader
So the preview snippets are always compiled with the same encoding as the main
document, which should work in any case I can imagine (also if utf8-inputenc
is not available).
I tested it with several encodings. Seems to work fine (more testing is
appreciated, though).
Please see my comments to your accidental commit.
Abdel.