If there was an encoding set by the inputenc package, it must not be ignored.
Now all tex2lyx test cases can be exported to .tex again by LyX (although
there are still some differences in the .lyx output).
have_CJK = true;
// set the encoding to "auto" because it might be set to "default" by the babel handling
// and this would not be correct for CJK
- h_inputencoding = "auto";
+ if (h_inputencoding == "default")
+ h_inputencoding = "auto";
registerAutomaticallyLoadedPackage("CJK");
}