From: Vincent van Ravesteijn Date: Mon, 3 Jun 2013 15:58:06 +0000 (+0200) Subject: Make sure numeric conversions are not locale dependent X-Git-Tag: 2.1.0beta1~50 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9a6c402a82df0e57839b5c9eed094f2faf216e83;p=features.git 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. --- 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"); }