From e5165f7fc356b7a579756a6d77d77088663c6295 Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Wed, 23 Jan 2013 12:30:15 +0100 Subject: [PATCH] Exclude unsafe encodings when setting the inputencoding value. All of the japanese encodings are safe, but nevertheless the logic here should exclude unsafe encodings. --- src/tex2lyx/Preamble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp index 61ce6b87e8..15f8103f99 100644 --- a/src/tex2lyx/Preamble.cpp +++ b/src/tex2lyx/Preamble.cpp @@ -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; -- 2.39.2