respect locale environment except for LC_NUMERIC

fixes #1852
This commit is contained in:
Sebastian Hoogen
2014-12-09 17:24:34 +01:00
parent be38772631
commit f32caef40c
2 changed files with 3 additions and 9 deletions

View File

@@ -67,12 +67,8 @@ const char sBanner[] = "(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2
int main( int argc, char ** argv )
{
// Make sure that we use '.' as decimal point
#if defined(FC_OS_LINUX)
putenv("LANG=C");
putenv("LC_ALL=C");
#else
setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C");
#endif
// Name and Version of the Application
App::Application::Config()["ExeName"] = "FreeCAD";