Using enviornment locale with unit_tests.

This commit is contained in:
Matthias Koefferlein 2018-07-06 00:07:01 +02:00
parent e0a23adb66
commit 221d5a4a38
1 changed files with 5 additions and 1 deletions

View File

@ -375,10 +375,11 @@ main_cont (int &argc, char **argv)
try {
#if defined(HAVE_QT)
pya::PythonInterpreter::initialize ();
gsi::initialize_external ();
#if defined(HAVE_QT)
// NOTE: we need an application object, but we don't call parse_cmd. This makes the object
// behave neutral as far as possible.
lay::GuiApplication app (argc, argv);
@ -395,6 +396,9 @@ main_cont (int &argc, char **argv)
#else
// select the system locale
setlocale (LC_ALL, "");
// initialize the modules (load their plugins from the paths)
db::init ();