--- a/config.cpp Mon Mar 25 01:04:20 2013 +0200 +++ b/config.cpp Mon Mar 25 15:20:56 2013 +0200 @@ -103,6 +103,9 @@ // ============================================================================= // Load the configuration from file bool config::load () { + // Locale must be disabled for atof + setlocale (LC_NUMERIC, "C"); + FILE* fp = fopen (filepath().chars(), "r"); char linedata[MAX_INI_LINE]; char* line; @@ -230,6 +233,10 @@ // ============================================================================= // Save the configuration to disk bool config::save () { + // The function will write floats, disable the locale now so that they + // are written properly. + setlocale (LC_NUMERIC, "C"); + #ifdef APPNAME #ifdef CONFIG_WITH_QT // If the directory doesn't exist, create it now.