]> git.lyx.org Git - features.git/commitdiff
Make sure numeric conversions are not locale dependent
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jun 2013 15:58:06 +0000 (17:58 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jun 2013 15:58:06 +0000 (17:58 +0200)
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

index 80bd6991ba75b73aff3c44d6ed8bf1f53b05dfd1..19e9b2bdfe64975add9f27330183378c25414951 100644 (file)
@@ -188,6 +188,7 @@ void setLocale()
        }
        Messages::guiLanguage(fromqstr(theLocale.name()));
        QLocale::setDefault(theLocale);
+       setlocale(LC_NUMERIC, "C");
 }