From e00b2440502e974715f44f54aa811c3bf7789175 Mon Sep 17 00:00:00 2001 From: Gres Date: Sun, 25 Oct 2015 14:04:48 +0300 Subject: [PATCH] Set numeric locale to C for proper tesseract-orc-* packages work on linux. --- main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.cpp b/main.cpp index 1856300..01a9f1e 100644 --- a/main.cpp +++ b/main.cpp @@ -1,3 +1,7 @@ +#ifdef Q_OS_LINUX +# include +#endif + #include #include @@ -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);