Fix encoding for japanese documents

The header parameter \inputenc uses the LaTeX name, so we need must not set
it to the LyX name for japanese documents.
This commit is contained in:
Georg Baum 2013-02-18 21:22:21 +01:00
parent 4061e5bbdb
commit 2a1eb2fe9b

View File

@ -805,7 +805,7 @@ void Preamble::handle_package(Parser &p, string const & name,
Encoding const * const enc = encodings.fromIconvName(
p.getEncoding(), Encoding::japanese, false);
if (enc)
h_inputencoding = enc->name();
h_inputencoding = enc->latexName();
is_nonCJKJapanese = true;
// in this case babel can be removed from the preamble
registerAutomaticallyLoadedPackage("babel");