From: vsr Date: Mon, 24 May 2010 10:58:26 +0000 (+0000) Subject: 0020883: [CEA 404] Pb with old hdf X-Git-Tag: Plotenh~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c70e7d69d7d18d8e35e1ab6cce036014e101da4;p=modules%2Fkernel.git 0020883: [CEA 404] Pb with old hdf --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index 6070173cc..62f4e169a 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -28,6 +28,7 @@ #include "DF_ChildIterator.hxx" #include "HDFexplorer.hxx" +#include "Basics_Utils.hxx" #include "SALOMEDSImpl_Attributes.hxx" #include "SALOMEDSImpl_Tool.hxx" @@ -120,6 +121,9 @@ SALOMEDSImpl_Study* SALOMEDSImpl_StudyManager::NewStudy(const std::string& study //============================================================================ SALOMEDSImpl_Study* SALOMEDSImpl_StudyManager::Open(const std::string& aUrl) { + // Set "C" locale temporarily to avoid possible localization problems + Kernel_Utils::Localizer loc; + _errorCode = ""; // open the HDFFile @@ -460,6 +464,9 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const std::string& aStudyUrl, bool theMultiFile, bool theASCII) { + // Set "C" locale temporarily to avoid possible localization problems + Kernel_Utils::Localizer loc; + // HDF File will be composed of differents part : // * For each ComponentDataType, all data created by the component // Informations in data group hdf_group_datacomponent