Code: Select all
std::cerr << "Set locale to C" << std::endl;
Code: Select all
std::cerr << "Set locale to C" << std::endl;
This seems all ok.wmayer wrote:Put e.g.
Code: Select all
std::cerr << "Set locale to C" << std::endl;
inside the '#if Q_OS_UNIX/#endif. Build it and then check your console window when starting FreeCAD.
Code: Select all
src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp: myCurLocale = setlocale(LC_NUMERIC, 0);
src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp: setlocale(LC_NUMERIC, "C");
src/3rdParty/salomesmesh/src/DriverSTL/Basics_Utils.cpp: setlocale(LC_NUMERIC, myCurLocale.c_str());
Yes, the putenv sets the environment variable and thus affects any sub-processes, too. So, as suggested in the other thread just put back the change in the main() function.Could it be that the "putenv" was important, which was removed with the commit?
Or we have to do the same at some places in FreeCAD like smesh?