fix locale handling

unset LC_ALL in MainGui like it was done in MainCmd in f32caef40c
This commit is contained in:
Sebastian Hoogen 2015-03-21 23:40:27 +01:00
parent f376ce1310
commit be823acda2

View File

@ -191,10 +191,12 @@ int main( int argc, char ** argv )
QFile::setDecodingFunction(myDecoderFunc); QFile::setDecodingFunction(myDecoderFunc);
// Make sure that we use '.' as decimal point. See also // Make sure that we use '.' as decimal point. See also
// http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559846 // http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559846
putenv("LC_ALL=");
putenv("LC_NUMERIC=C"); putenv("LC_NUMERIC=C");
putenv("PYTHONPATH="); putenv("PYTHONPATH=");
#elif defined(FC_OS_MACOSX) #elif defined(FC_OS_MACOSX)
(void)QLocale::system(); (void)QLocale::system();
putenv("LC_ALL=");
putenv("LC_NUMERIC=C"); putenv("LC_NUMERIC=C");
putenv("PYTHONPATH="); putenv("PYTHONPATH=");
#else #else