+ // 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) {
+ LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_);
+ }
+ // FIXME: This breaks out of source build under Windows.
+ locale_init();
+