From 9a6c402a82df0e57839b5c9eed094f2faf216e83 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 3 Jun 2013 17:58:06 +0200 Subject: [PATCH] Make sure numeric conversions are not locale dependent In [19024f72\lyxgit] this line was removed. Later this caused that floats were converted to strings using ','s instead of '.'s. Readding this line fixes this. --- src/frontends/qt4/GuiApplication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index 80bd6991ba..19e9b2bdfe 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -188,6 +188,7 @@ void setLocale() } Messages::guiLanguage(fromqstr(theLocale.name())); QLocale::setDefault(theLocale); + setlocale(LC_NUMERIC, "C"); } -- 2.39.2