The branch, master, has been updated. - Log -----------------------------------------------------------------
commit 2a1eb2fe9bf3977f10c4e21bc44c8b0cc704462f Author: Georg Baum <[email protected]> Date: Mon Feb 18 21:22:21 2013 +0100 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. diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index a7ef65f..aaa7684 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -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"); ----------------------------------------------------------------------- Summary of changes: src/tex2lyx/Preamble.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) hooks/post-receive -- The LyX Source Repository
