]> git.lyx.org Git - features.git/commitdiff
preamble.cpp: tex2lyx creates fileformat 264 - the encoding "ascii" is known to LyX...
authorUwe Stöhr <uwestoehr@web.de>
Fri, 11 Dec 2009 01:26:07 +0000 (01:26 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Fri, 11 Dec 2009 01:26:07 +0000 (01:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32472 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 3c67b6ca66c22df2d2cee28c9ac977ed88cdbf2e..9557fa7b3c69c40c5a43fbf314de197218421b92 100644 (file)
@@ -328,14 +328,8 @@ void handle_package(Parser &p, string const & name, string const & opts,
                // Therefore check for the "," character.
                // It is also only set when there is not more then one babel
                // language option but this is handled in the routine for babel.
-               if (opts.find(",") == string::npos && one_language == true) {
-                       if (opts == "ascii")
-                               //change ascii to auto to be in the unicode range, see
-                               //http://www.lyx.org/trac/ticket/4719
-                               h_inputencoding = "auto";
-                       else if (!opts.empty())
-                               h_inputencoding = opts;
-               }
+               if (opts.find(",") == string::npos && one_language == true)
+                       h_inputencoding = opts;
                if (!options.empty())
                        p.setEncoding(options.back());
                options.clear();