diff -p -up stellarium-0.10.4/src/main.cpp.orig stellarium-0.10.4/src/main.cpp --- stellarium-0.10.4/src/main.cpp.orig 2010-02-22 08:22:31.000000000 -0300 +++ stellarium-0.10.4/src/main.cpp 2010-03-20 23:16:30.000000000 -0300 @@ -125,12 +125,6 @@ int main(int argc, char **argv) QApplication::setStyle(new QPlastiqueStyle()); #endif - // Used for getting system date formatting - setlocale(LC_TIME, ""); - // We need scanf()/printf() and friends to always work in the C locale, - // otherwise configuration/INI file parsing will be erroneous. - setlocale(LC_NUMERIC, "C"); - // Handle command line options for alternative Qt graphics system types. // DEFAULT_GRAPHICS_SYSTEM is defined per platform in the main CMakeLists.txt file. // Avoid overriding if the user already specified the mode on the CLI. @@ -154,6 +148,11 @@ int main(int argc, char **argv) // The QApplication MUST be created before the StelFileMgr is initialized. QApplication app(argc, argv); + // QApplication sets current locale, but + // we need scanf()/printf() and friends to always work in the C locale, + // otherwise configuration/INI file parsing will be erroneous. + setlocale(LC_NUMERIC, "C"); + // Init the file manager StelFileMgr::init();