From: Gilles DAVID Date: Tue, 6 Jun 2017 12:40:23 +0000 (+0200) Subject: Porting Python3: Decode strings X-Git-Tag: Before_python3_27062017~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=caf1af963ac903266adade733e59d3e0139cb261;p=modules%2Fyacs.git Porting Python3: Decode strings --- 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 +++++++++++" ); }