mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 09:20:32 +05:00
Porting Python3: Encode URL
This commit is contained in:
parent
bf9ebfec9f
commit
90f8a73955
@ -3033,7 +3033,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
|
|
||||||
TCollection_AsciiString aStudyName( "" );
|
TCollection_AsciiString aStudyName( "" );
|
||||||
if ( isMultiFile )
|
if ( isMultiFile )
|
||||||
aStudyName = ( (char*)SALOMEDS_Tool::GetNameFromPath( myCurrentStudy->URL() ).c_str() );
|
aStudyName = ( (char*)SALOMEDS_Tool::GetNameFromPath( Kernel_Utils::encode(myCurrentStudy->URL()) ).c_str() );
|
||||||
|
|
||||||
// Set names of temporary files
|
// Set names of temporary files
|
||||||
TCollection_AsciiString filename =
|
TCollection_AsciiString filename =
|
||||||
@ -4038,8 +4038,8 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
isMultiFile );
|
isMultiFile );
|
||||||
TCollection_AsciiString aStudyName( "" );
|
TCollection_AsciiString aStudyName( "" );
|
||||||
if ( isMultiFile ) {
|
if ( isMultiFile ) {
|
||||||
CORBA::String_var url = myCurrentStudy->URL();
|
CORBA::WString_var url = myCurrentStudy->URL();
|
||||||
aStudyName = (char*)SALOMEDS_Tool::GetNameFromPath( url.in() ).c_str();
|
aStudyName = (char*)SALOMEDS_Tool::GetNameFromPath( Kernel_Utils::encode(url.in()) ).c_str();
|
||||||
}
|
}
|
||||||
// Set names of temporary files
|
// Set names of temporary files
|
||||||
TCollection_AsciiString filename = tmpDir + aStudyName + "_SMESH.hdf";
|
TCollection_AsciiString filename = tmpDir + aStudyName + "_SMESH.hdf";
|
||||||
|
Loading…
Reference in New Issue
Block a user