]> git.lyx.org Git - features.git/commitdiff
Exclude unsafe encodings when setting the inputencoding value.
authorJulien Rioux <jrioux@lyx.org>
Wed, 23 Jan 2013 11:30:15 +0000 (12:30 +0100)
committerJulien Rioux <jrioux@lyx.org>
Wed, 23 Jan 2013 11:30:15 +0000 (12:30 +0100)
All of the japanese encodings are safe, but nevertheless the
logic here should exclude unsafe encodings.

src/tex2lyx/Preamble.cpp

index 61ce6b87e870d18cc5e2be00c1e5fe7463c697cf..15f8103f99434fd66909980e5c77f54f7396d699 100644 (file)
@@ -737,7 +737,7 @@ void Preamble::handle_package(Parser &p, string const & name,
                                // we will output a note at the top of the document
                                // explaining what to do.
                                Encoding const * const enc = encodings.fromIconvName(
-                                       p.getEncoding(), Encoding::japanese, true);
+                                       p.getEncoding(), Encoding::japanese, false);
                                if (enc)
                                        h_inputencoding = enc->name();
                                is_nonCJKJapanese = true;