commit 9a6c402a82df0e57839b5c9eed094f2faf216e83
Author: Vincent van Ravesteijn <[email protected]>
Date:   Mon Jun 3 17:58:06 2013 +0200

    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 80bd699..19e9b2b 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");
 }
 
 

Reply via email to