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
This commit is contained in:
Uwe Stöhr 2008-04-09 20:19:47 +00:00
parent 36932b10fa
commit 8d6583e9ce

View File

@ -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