From 547773f0d059716b3a8592bf8349bedabfc9cdb5 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 7 Aug 2010 11:18:04 +0000 Subject: [PATCH] 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 --- src/LyX.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/LyX.cpp b/src/LyX.cpp index 15326e09da..3a03eb3145 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -281,6 +281,13 @@ void setRcGuiLanguage() 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 // we need to parse for "-dbg" and "-help" easyParse(argc, argv); -- 2.39.2