From caf1af963ac903266adade733e59d3e0139cb261 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Tue, 6 Jun 2017 14:40:23 +0200 Subject: [PATCH] Porting Python3: Decode strings --- src/runtime/StudyNodes.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/runtime/StudyNodes.cxx b/src/runtime/StudyNodes.cxx index bad02108c..42282c0eb 100644 --- a/src/runtime/StudyNodes.cxx +++ b/src/runtime/StudyNodes.cxx @@ -24,6 +24,7 @@ #include "TypeCode.hxx" #include "SalomeProc.hxx" +#include "Basics_Utils.hxx" #include "SALOME_NamingService.hxx" #include "SALOMEDS.hh" #include "SALOMEDS_Attributes.hh" @@ -280,7 +281,7 @@ void StudyOutNode::execute() //open a new one std::stringstream msg; msg << "Study" << studyid; - myStudy=aStudyManager->NewStudy(msg.str().c_str()); + myStudy=aStudyManager->NewStudy(Kernel_Utils::decode_s(msg.str())); if(CORBA::is_nil(myStudy)) { _errorDetails="Execution problem: can not create new study " + msg.str(); @@ -311,7 +312,7 @@ void StudyOutNode::execute() // save in file if ref is given if(_ref != "") { - aStudyManager->SaveAs(_ref.c_str(),myStudy, false); + aStudyManager->SaveAs(Kernel_Utils::decode_s(_ref),myStudy, false); } DEBTRACE("+++++++ end StudyOutNode::execute +++++++++++" ); } -- 2.39.2