]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Porting Python3: Encode URL ngr/python3_dev
authorGilles DAVID <gilles-g.david@edf.fr>
Tue, 6 Jun 2017 12:25:27 +0000 (14:25 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Tue, 6 Jun 2017 12:25:27 +0000 (14:25 +0200)
src/GEOM_I/GEOM_Gen_i.cc

index 78212462407efdcbea25351051e5b8359daf157f..15241bd0822eadfedf8deb77e169094b02297f9f 100644 (file)
@@ -66,6 +66,7 @@
 #include <SALOMEDS_Tool.hxx>
 #include <SALOMEDS_wrap.hxx>
 #include <Basics_DirUtils.hxx>
+#include <Basics_Utils.hxx>
 
 #include <set>
 #include <sstream>
@@ -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