#ifdef Q_OS_LINUX
#  include <locale.h>
#endif

#include <QApplication>
#include <QTranslator>

#include <qtsingleapplication.h>

#include <Manager.h>
#include <Settings.h>

int main (int argc, char *argv[]) {
  QtSingleApplication a (argc, 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);

  QTranslator translator;
  // Set default to english.
  if (translator.load (QLocale::system (), "translation", "_", ":/translations") ||
      translator.load (":/translations/translation_en")) {
    a.installTranslator (&translator);
  }

  Manager manager;

  return a.exec ();
}

#include <QApplication>
#include <QTranslator>

#include <qtsingleapplication.h>

#include <Manager.h>
#include <Settings.h>

int main (int argc, char *argv[]) {
  QtSingleApplication a (argc, argv);
  if (a.sendMessage (QString ())) {
    return 0;
  }
  a.setQuitOnLastWindowClosed (false);
  a.setApplicationName (settings_values::appName);
  a.setOrganizationName (settings_values::companyName);

  QTranslator translator;
  // Set default to english.
  if (translator.load (QLocale::system (), "translation", "_", ":/translations") ||
      translator.load (":/translations/translation_en")) {
    a.installTranslator (&translator);
  }

  Manager manager;

  return a.exec ();
}

--- 
+++ 
@@ -1,3 +1,7 @@
+#ifdef Q_OS_LINUX
+#  include <locale.h>
+#endif
+
 #include <QApplication>
 #include <QTranslator>
 
@@ -11,6 +15,9 @@
   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);
Set numeric locale to C for proper tesseract-orc-* packages work on linux.
