From: Gilles DAVID Date: Tue, 6 Jun 2017 12:25:27 +0000 (+0200) Subject: Porting Python3: Encode URL X-Git-Tag: V9_0_0~4^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fngr%2Fpython3_dev;p=modules%2Fgeom.git Porting Python3: Encode URL --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 782124624..15241bd08 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -66,6 +66,7 @@ #include #include #include +#include #include #include @@ -599,7 +600,7 @@ SALOMEDS::TMPFile* GEOM_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent, TCollection_AsciiString aNameWithExt(""); if (isMultiFile) aNameWithExt = TCollection_AsciiString((char*)(SALOMEDS_Tool::GetNameFromPath - (theComponent->GetStudy()->URL())).c_str()); + (Kernel_Utils::encode(theComponent->GetStudy()->URL()))).c_str()); #if OCC_VERSION_MAJOR > 6 aNameWithExt += TCollection_AsciiString("_GEOM.cbf"); #else