#include <GEOMImpl_IMeasureOperations.hxx>
+#include <Basics_Utils.hxx>
+
// OCCT Includes
#include <BRepBuilderAPI_Transform.hxx>
#include <BRep_Tool.hxx>
TopoDS_Shape aShape;
// Set "C" numeric locale to save numbers correctly
- std::string aCurLocale = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, "C");
+ Kernel_Utils::Localizer loc;
// create sketcher
Sketcher_Profile aProfile (aCommand.ToCString());
- // Return previous locale
- setlocale(LC_NUMERIC, aCurLocale.data());
-
if (!aProfile.IsDone()) {
Standard_ConstructionError::Raise("Sketcher creation failed");
}
//
#include "utilities.h"
+#include <Basics_Utils.hxx>
+
#include <IGESControl_Controller.hxx>
#include <IGESControl_Writer.hxx>
#include <Interface_Static.hxx>
aBrepMode = 1;
// Set "C" numeric locale to save numbers correctly
- std::string aCurLocale = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, "C");
+ Kernel_Utils::Localizer loc;
// initialize writer
IGESControl_Controller::Init();
bool ok = ICW.Write( theFileName.ToCString() );
// Return previous locale
- setlocale(LC_NUMERIC, aCurLocale.data());
if ( ok )
return 1;
}
//
#include "utilities.h"
+#include <Basics_Utils.hxx>
+
#include <IFSelect_ReturnStatus.hxx>
#include <IGESControl_Reader.hxx>
#include <IGESData_IGESModel.hxx>
const TDF_Label&)
{
// Set "C" numeric locale to save numbers correctly
- std::string aCurLocale = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, "C");
+ Kernel_Utils::Localizer loc;
IGESControl_Reader aReader;
TopoDS_Shape aResShape;
TopoDS_Vertex V;
B.MakeVertex(V,P,1.e-7);
aResShape = V;
- // Return previous locale before return from import
- setlocale(LC_NUMERIC, aCurLocale.data());
return aResShape;
}
if( theFormatName == "IGES_SCALE" ) {
theError = aFail->GetMessageString();
aResShape.Nullify();
}
- // Return previous locale
- setlocale(LC_NUMERIC, aCurLocale.data());
return aResShape;
}
}
//
#include "utilities.h"
+#include <Basics_Utils.hxx>
+
#include <IFSelect_ReturnStatus.hxx>
#include <STEPControl_Writer.hxx>
try
{
// Set "C" numeric locale to save numbers correctly
- std::string aCurLocale = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, "C");
+ Kernel_Utils::Localizer loc;
IFSelect_ReturnStatus status ;
//VRV: OCC 4.0 migration
status = aWriter.Write( theFileName.ToCString() );
// Return previous locale
- setlocale(LC_NUMERIC, aCurLocale.data());
if ( status == IFSelect_RetDone )
return 1;
}
//
#include "utilities.h"
+#include <Basics_Utils.hxx>
+
#include <BRep_Builder.hxx>
#include <IFSelect_ReturnStatus.hxx>
{
MESSAGE("Import STEP model from file " << theFileName.ToCString());
// Set "C" numeric locale to save numbers correctly
- std::string aCurLocale = setlocale(LC_NUMERIC, 0);
- setlocale(LC_NUMERIC, "C");
+ Kernel_Utils::Localizer loc;
TopoDS_Shape aResShape;
//VRV: OCC 4.0 migration
STEPControl_Reader aReader;
aResShape.Nullify();
}
// Return previous locale
- setlocale(LC_NUMERIC, aCurLocale.data());
return aResShape;
}
}