]> git.lyx.org Git - features.git/commitdiff
Fix encoding for japanese documents
authorGeorg Baum <baum@lyx.org>
Mon, 18 Feb 2013 20:22:21 +0000 (21:22 +0100)
committerGeorg Baum <baum@lyx.org>
Mon, 18 Feb 2013 20:22:21 +0000 (21:22 +0100)
The header parameter \inputenc uses the LaTeX name, so we need must not set
it to the LyX name for japanese documents.

src/tex2lyx/Preamble.cpp

index a7ef65f53fd958ba71415486e878fea7e7ac307c..aaa76841fee5e379d40a45ee0c54ecda41620c4f 100644 (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");