From: vsr Date: Mon, 8 Nov 2010 17:24:50 +0000 (+0000) Subject: 0020883: [CEA 404] Pb with old hdf X-Git-Tag: V5_1_3_patch06 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=76d8349f11f6cb4b70c38a5afe683061e0da2a66;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 cef6ad2b8..ca1e63158 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -27,6 +27,7 @@ #include "DF_ChildIterator.hxx" #include "HDFexplorer.hxx" +#include "Basics_Utils.hxx" #include "SALOMEDSImpl_Attributes.hxx" #include "SALOMEDSImpl_Tool.hxx" @@ -121,6 +122,9 @@ SALOMEDSImpl_Study* SALOMEDSImpl_StudyManager::NewStudy(const string& study_name //============================================================================ SALOMEDSImpl_Study* SALOMEDSImpl_StudyManager::Open(const string& aUrl) { + // Set "C" locale temporarily to avoid possible localization problems + Kernel_Utils::Localizer loc; + _errorCode = ""; // open the HDFFile @@ -461,6 +465,9 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const 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