From 76d8349f11f6cb4b70c38a5afe683061e0da2a66 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 8 Nov 2010 17:24:50 +0000 Subject: [PATCH] 0020883: [CEA 404] Pb with old hdf --- src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.2