Set numeric locale to C for proper tesseract-orc-* packages work on linux.

This commit is contained in:
Gres 2015-10-25 14:04:48 +03:00
parent 45d7f76890
commit e00b244050

View File

@ -1,3 +1,7 @@
#ifdef Q_OS_LINUX
# include <locale.h>
#endif
#include <QApplication>
#include <QTranslator>
@ -11,6 +15,9 @@ int main (int argc, char *argv[]) {
if (a.sendMessage (QString ())) {
return 0;
}
#ifdef Q_OS_LINUX
setlocale (LC_NUMERIC, "C");
#endif
a.setQuitOnLastWindowClosed (false);
a.setApplicationName (settings_values::appName);
a.setOrganizationName (settings_values::companyName);