0022898: IGES import fails in german environment
authorabv <abv@opencascade.com>
Fri, 1 Feb 2013 14:41:16 +0000 (18:41 +0400)
committerabv <abv@opencascade.com>
Fri, 1 Feb 2013 14:41:16 +0000 (18:41 +0400)
commit91322f44fd202e671046b9ce1ba393a02dbaf756
tree40681d487e0c38a6bc29522b1ef5754c074a044e
parent3bea4c165c9ddf99b515731d51f2db29d8353c2e
0022898: IGES import fails in german environment

Added DRAW command dlocale to set and query current locale of the C subsystem
Equivalents of C functions working with conversions of strings to/from reals added in Standard_CString, providing locale-independent behavior (using always "C" locale)
In DRAW packages, calls to atof() and atoi() are replaced by direct calls to Draw::Atof() and Draw::Atoi(), respectively, instead of substituting by #define
Use of atof(), strtod(), and *scanf() involving floating point conversions in OCCT code replaced by locale-independent Atof() and Strtod()
Calls to sprintf() involving floating point in OCCT code are replaced by call to locale-independent Sprintf(), except a few places where converted strings are used immediately for display in the 3d viewer
Changes of global locale are eliminated throughout OCCT code
Proposed correction for GNU libC where v*printf_l functions are absent
Added test case (bugs xde bug22898) for data exchange operations with non-standard locale
Use xlocale on Mac OS X and within glibc
Corrected strtod_l wrapper
Generate error rather than warning
Introduce Standard_CLocaleSentry replacement for removed OSD_Localizer
Standard_CLocaleSentry - copy locale string
Standard_CLocaleSentry - use _configthreadlocale on Windows
Standard_CLocaleSentry::GetCLocale() - return locale_t rather than void*
Corrected misprint in ~Standard_CLocaleSentry()
Use French locale in bug22898 test case
Mark test case as skipped if locale is unavailable on tested system.
Use fr_FR locale for tests on Mac OS X
203 files changed:
src/Approx/Approx_SameParameter.cxx
src/BOPTest/BOPTest_BOPCommands.cxx
src/BOPTest/BOPTest_CurveCommands.cxx
src/BOPTest/BOPTest_EFCommands.cxx
src/BOPTest/BOPTest_LowCommands.cxx
src/BOPTest/BOPTest_MTestCommands.cxx
src/BOPTest/BOPTest_TolerCommands.cxx
src/BOPTools/BOPTools_Checker.cxx
src/BRepTest/BRepTest_BasicCommands.cxx
src/BRepTest/BRepTest_ChamferCommands.cxx
src/BRepTest/BRepTest_CheckCommands.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BRepTest/BRepTest_DraftAngleCommands.cxx
src/BRepTest/BRepTest_ExtremaCommands.cxx
src/BRepTest/BRepTest_FeatureCommands.cxx
src/BRepTest/BRepTest_Fillet2DCommands.cxx
src/BRepTest/BRepTest_FilletCommands.cxx
src/BRepTest/BRepTest_FillingCommands.cxx
src/BRepTest/BRepTest_GPropCommands.cxx
src/BRepTest/BRepTest_OtherCommands.cxx
src/BRepTest/BRepTest_PrimitiveCommands.cxx
src/BRepTest/BRepTest_ProjectionCommands.cxx
src/BRepTest/BRepTest_SurfaceCommands.cxx
src/BRepTest/BRepTest_SweepCommands.cxx
src/BRepTest/BRepTest_TopologyCommands.cxx
src/DBRep/DBRep.cxx
src/DDF/DDF_BrowserCommands.cxx
src/DDF/DDF_IOStream.cxx
src/DDF/DDF_TransactionCommands.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_ConstraintCommands.cxx
src/DDataStd/DDataStd_DatumCommands.cxx
src/DDataStd/DDataStd_DrawDisplayCommands.cxx
src/DDataStd/DDataStd_TreeCommands.cxx
src/DDocStd/DDocStd_DocumentCommands.cxx
src/DDocStd/DDocStd_MTMCommands.cxx
src/DNaming/DNaming_BasicCommands.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DNaming/DNaming_SelectionCommands.cxx
src/DPrsStd/DPrsStd_AISPresentationCommands.cxx
src/Draw/Draw.cdl
src/Draw/Draw.cxx
src/Draw/Draw_Appli.hxx
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_GraphicCommands.cxx
src/Draw/Draw_Interpretor.cxx
src/Draw/Draw_ProgressIndicator.cxx
src/Draw/Draw_UnitCommands.cxx
src/Draw/Draw_VariableCommands.cxx
src/DrawDim/DrawDim_PlanarDimensionCommands.cxx
src/DrawTrSurf/DrawTrSurf.cxx
src/DrawTrSurf/DrawTrSurf_Triangulation.cxx
src/Dynamic/Dynamic_FuzzyDefinitionsDictionary.cxx
src/Dynamic/Dynamic_MethodDefinitionsDictionary.cxx
src/Expr/Expr_NumericValue.cxx
src/ExprIntrp/ExprIntrp_yaccintrf.cxx
src/FSD/FSD_CmpFile.cdl
src/FSD/FSD_CmpFile.cxx
src/FSD/FSD_File.cxx
src/GeomProjLib/GeomProjLib.cxx
src/GeometryTest/GeometryTest_API2dCommands.cxx
src/GeometryTest/GeometryTest_APICommands.cxx
src/GeometryTest/GeometryTest_ConstraintCommands.cxx
src/GeometryTest/GeometryTest_ContinuityCommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeometryTest/GeometryTest_FairCurveCommands.cxx
src/GeometryTest/GeometryTest_PolyCommands.cxx
src/GeometryTest/GeometryTest_SurfaceCommands.cxx
src/GeometryTest/GeometryTest_TestProjCommands.cxx
src/GeomliteTest/GeomliteTest_API2dCommands.cxx
src/GeomliteTest/GeomliteTest_ApproxCommands.cxx
src/GeomliteTest/GeomliteTest_CurveCommands.cxx
src/GeomliteTest/GeomliteTest_ModificationCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
src/HLRTest/HLRTest.cxx
src/IGESData/IGESData_GlobalSection.cxx
src/IGESData/IGESData_ParamReader.cxx
src/IGESGeom/IGESGeom_ToolCircularArc.cxx
src/IGESGeom/IGESGeom_ToolConicArc.cxx
src/IGESGeom/IGESGeom_ToolPlane.cxx
src/IGESSelect/IGESSelect_Activator.cxx
src/IGESSelect/IGESSelect_Dumper.cxx
src/IGESSelect/IGESSelect_FloatFormat.cxx
src/IGESToBRep/IGESToBRep_Reader.cxx
src/Interface/Interface_FileReaderData.cxx
src/Interface/Interface_FloatWriter.cxx
src/Interface/Interface_Static.cxx
src/Materials/Materials_MaterialDefinition.cxx
src/Materials/Materials_MaterialsDictionary.cxx
src/MeshTest/MeshTest.cxx
src/MeshTest/MeshTest_PluginCommands.cxx
src/Message/Message.cxx
src/Message/Message_Msg.cxx
src/MoniTool/MoniTool_Timer.cxx
src/MoniTool/MoniTool_TypedValue.cxx
src/OSD/FILES
src/OSD/OSD.cdl
src/OSD/OSD.cxx
src/OSD/OSD_Localizer.cdl [deleted file]
src/OSD/OSD_Localizer.cxx [deleted file]
src/OSD/OSD_Real2String.cdl [deleted file]
src/OSD/OSD_Real2String.cxx [deleted file]
src/OpenGl/OpenGl_GraphicDriver_Export.cxx
src/PCDM/PCDM_RetrievalDriver.cxx
src/PCDM/PCDM_StorageDriver.cxx
src/PCollection/PCollection_HAsciiString.cxx
src/Poly/Poly_CoherentNode.cxx
src/QABugs/QABugs_1.cxx
src/QABugs/QABugs_10.cxx
src/QABugs/QABugs_11.cxx
src/QABugs/QABugs_12.cxx
src/QABugs/QABugs_13.cxx
src/QABugs/QABugs_14.cxx
src/QABugs/QABugs_15.cxx
src/QABugs/QABugs_16.cxx
src/QABugs/QABugs_17.cxx
src/QABugs/QABugs_18.cxx
src/QABugs/QABugs_2.cxx
src/QABugs/QABugs_3.cxx
src/QABugs/QABugs_4.cxx
src/QABugs/QABugs_5.cxx
src/QABugs/QABugs_6.cxx
src/QABugs/QABugs_8.cxx
src/QABugs/QABugs_9.cxx
src/QADNaming/QADNaming.cxx
src/QADNaming/QADNaming_BasicCommands.cxx
src/QADNaming/QADNaming_BuilderCommands.cxx
src/QADNaming/QADNaming_IteratorsCommands.cxx
src/QADNaming/QADNaming_SelectionCommands.cxx
src/QADraw/QADraw.cxx
src/QANCollection/QANCollection2.cxx
src/QANCollection/QANCollection3.cxx
src/QANewDBRepNaming/QANewDBRepNaming.cxx
src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx
src/QANewDBRepNaming/QANewDBRepNaming_PrimitiveCommands.cxx
src/RWStl/RWStl.cxx
src/SWDRAW/SWDRAW.cxx
src/SWDRAW/SWDRAW_ShapeAnalysis.cxx
src/SWDRAW/SWDRAW_ShapeCustom.cxx
src/SWDRAW/SWDRAW_ShapeFix.cxx
src/SWDRAW/SWDRAW_ShapeTool.cxx
src/SWDRAW/SWDRAW_ShapeUpgrade.cxx
src/Standard/FILES
src/Standard/Standard.cxx
src/Standard/Standard_CLocaleSentry.cxx [new file with mode: 0644]
src/Standard/Standard_CLocaleSentry.hxx [new file with mode: 0644]
src/Standard/Standard_CString.cxx
src/Standard/Standard_CString.hxx [changed mode: 0755->0644]
src/StepSelect/StepSelect_Activator.cxx
src/StepSelect/StepSelect_FloatFormat.cxx
src/Storage/Storage_Schema.cxx
src/TCollection/TCollection_AsciiString.cxx
src/TCollection/TCollection_ExtendedString.cxx
src/TObjDRAW/TObjDRAW.cxx
src/TestTopOpe/TestTopOpe_BOOP.cxx
src/TestTopOpe/TestTopOpe_BOOPCommands.cxx
src/TestTopOpe/TestTopOpe_CORCommands.cxx
src/TestTopOpe/TestTopOpe_HDSCommands.cxx
src/TestTopOpe/TestTopOpe_MesureCommands.cxx
src/TestTopOpe/TestTopOpe_OtherCommands.cxx
src/TestTopOpeDraw/TestTopOpeDraw_OtherCommands.cxx
src/TestTopOpeTools/TestTopOpeTools_TraceCommands.cxx
src/TopOpeBRep/TopOpeBRep_traceALWL.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx
src/TopTools/TopTools_ShapeSet.cxx
src/Units/Units_UnitsDictionary.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_FilletCommands.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/Voxel/Voxel_Reader.cxx
src/VrmlData/VrmlData_Geometry.cxx
src/VrmlData/VrmlData_Group.cxx
src/VrmlData/VrmlData_IndexedFaceSet.cxx
src/VrmlData/VrmlData_Material.cxx
src/VrmlData/VrmlData_Scene.cxx
src/VrmlData/VrmlData_WorldInfo.cxx
src/WNT/WNT_GraphicDevice.cxx
src/XDEDRAW/XDEDRAW.cxx
src/XDEDRAW/XDEDRAW_Colors.cxx
src/XDEDRAW/XDEDRAW_Common.cxx
src/XDEDRAW/XDEDRAW_Layers.cxx
src/XDEDRAW/XDEDRAW_Props.cxx
src/XDEDRAW/XDEDRAW_Shapes.cxx
src/XSDRAW/XSDRAW.cxx
src/XSDRAWIGES/XSDRAWIGES.cxx
src/XSDRAWSTEP/XSDRAWSTEP.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
src/XmlLDrivers/XmlLDrivers.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx
src/XmlMDataStd/XmlMDataStd_NamedDataDriver.cxx
src/XmlMDataStd/XmlMDataStd_RealArrayDriver.cxx
src/XmlMDataStd/XmlMDataStd_RealDriver.cxx
src/XmlMNaming/XmlMNaming_Shape1.cxx
src/XmlMPrsStd/XmlMPrsStd_PositionDriver.cxx
src/XmlMXCAFDoc/XmlMXCAFDoc_CentroidDriver.cxx
src/XmlMXCAFDoc/XmlMXCAFDoc_DimTolDriver.cxx
src/XmlObjMgt/XmlObjMgt.cxx
src/XmlObjMgt/XmlObjMgt_GP.cxx
tests/bugs/begin
tests/bugs/parse.rules
tests/bugs/xde/bug22898 [new file with mode: 0644]