From fcba27b37b1d18f43796e3f7e1293a117f7e9d2f Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Tue, 6 Jun 2017 14:25:27 +0200 Subject: [PATCH] Porting Python3: Encode URL --- src/GEOM_I/GEOM_Gen_i.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2