0020555: EDF GEOM: MakeSketcher and localisation

This commit is contained in:
dmv 2009-10-27 13:29:27 +00:00
parent 60b554175f
commit f82f2f5a2a

View File

@ -78,9 +78,16 @@ Standard_Integer GEOMImpl_SketcherDriver::Execute(TFunction_Logbook& log) const
TopoDS_Shape aShape;
// Set "C" numeric locale to save numbers correctly
std::string aCurLocale = setlocale(LC_NUMERIC, 0);
setlocale(LC_NUMERIC, "C");
// create sketcher
Sketcher_Profile aProfile (aCommand.ToCString());
// Return previous locale
setlocale(LC_NUMERIC, aCurLocale.data());
if (!aProfile.IsDone()) {
Standard_ConstructionError::Raise("Sketcher creation failed");
}