set locale correctly before parsing command line (bug #6842)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35078 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2010-08-07 11:18:04 +00:00
parent d10b46ffbd
commit 547773f0d0

View File

@ -281,6 +281,13 @@ void setRcGuiLanguage()
int LyX::exec(int & argc, char * argv[]) int LyX::exec(int & argc, char * argv[])
{ {
// Minimal setting of locale before parsing command line
try {
init_package(os::utf8_argv(0), string(), string(),
top_build_dir_is_one_level_up);
} catch (ExceptionMessage const & message) {}
Messages::init();
// Here we need to parse the command line. At least // Here we need to parse the command line. At least
// we need to parse for "-dbg" and "-help" // we need to parse for "-dbg" and "-help"
easyParse(argc, argv); easyParse(argc, argv);