From 6e09f111fd22347f4bc711e188f0586b35905b18 Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Thu, 15 Mar 2018 10:04:58 +0100 Subject: [PATCH] Set LC_NUMERIC to C by default. --- src/gui/main.cc.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/main.cc.in b/src/gui/main.cc.in index 12b2d30..f5bdb13 100644 --- a/src/gui/main.cc.in +++ b/src/gui/main.cc.in @@ -56,6 +56,10 @@ int main(int argc, char *argv[]) setupApplication(); + // Set numeric locale to C so as not to disturb other libraries (like collada + // dom) relying on sscanf (locale dependant) to convert string to double. + setlocale(LC_NUMERIC, "C"); + Settings settings ("@CMAKE_INSTALL_PREFIX@"); settings.setupPaths (); switch (settings.fromArgv (argc, argv)) { -- GitLab