mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
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:
parent
d10b46ffbd
commit
547773f0d0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user