From 8d6583e9cec57b0995ba919611659092b6ad9a69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 9 Apr 2008 20:19:47 +0000 Subject: [PATCH] tex2lyx/preamble.cpp: change encoding from ascii to auto when importing TeX files, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4719 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24196 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/preamble.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 86510f721d..51fb970ca8 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -305,7 +305,12 @@ void handle_package(string const & name, string const & opts) // therefore check for the "," character // also only set when there is not more then one babel language option if (opts.find(",") == string::npos && one_language == true) - h_inputencoding = opts; + if (opts == "ascii") + //change ascii to auto to be in the unicode range, see + //http://bugzilla.lyx.org/show_bug.cgi?id=4719 + h_inputencoding = "auto"; + else + h_inputencoding = opts; options.clear(); } else if (name == "makeidx") ; // ignore this -- 2.39.2