From: dmv Date: Tue, 27 Oct 2009 13:29:27 +0000 (+0000) Subject: 0020555: EDF GEOM: MakeSketcher and localisation X-Git-Tag: RELIQUAT_5x_30102009~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f82f2f5a2a789170947af2f786a7d64d5cd9035c;p=modules%2Fgeom.git 0020555: EDF GEOM: MakeSketcher and localisation --- diff --git a/src/GEOMImpl/GEOMImpl_SketcherDriver.cxx b/src/GEOMImpl/GEOMImpl_SketcherDriver.cxx index 6642592d1..8d477f541 100644 --- a/src/GEOMImpl/GEOMImpl_SketcherDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_SketcherDriver.cxx @@ -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"); }