If the user gave the -fixedenc argument to tex2lyx then set that encoding as
LaTeX input encoding in the generated LyX file. Otherwise, included .bib files
could be interpreted using a wrong encoding.
///
std::string inputencoding() const { return h_inputencoding; }
///
+ void setInputencoding(std::string const & e) { h_inputencoding = e; }
+ ///
std::string notefontcolor() const { return h_notefontcolor; }
///
bool refstyle() const { return h_use_refstyle; }
}
-string fixedEncoding()
-{
- if (fixed_encoding)
- return default_encoding;
- return "";
-}
-
-
namespace {
/*!
if (!enc)
error_message("Unknown LaTeX encoding `" + default_encoding + "'");
default_encoding = enc->iconvName();
+ if (fixed_encoding)
+ preamble.setInputencoding(enc->name());
}
// Load the layouts
* TEX2LYX
+- Write fixed encoding to LyX file if -fixedenc was given (bug 9178).
+