try {
init_package(os::utf8_argv(0), string(), string(),
top_build_dir_is_one_level_up);
+ // we do not get to this point when init_package throws an exception
+ locale_init();
} catch (ExceptionMessage const & message) {
LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_);
-#ifdef _WIN32
- // no console and no Qt here so use a simple message box
- MessageBoxA(0, to_ascii(message.details_).c_str(), to_ascii(message.title_).c_str(), 0);
- return 1;
-#endif
}
- locale_init();
// Here we need to parse the command line. At least
// we need to parse for "-dbg" and "-help"