]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for the "0022421: EDF 2805 GEOM: Save in a repertory with an accent fails" issue.
authorrnv <rnv@opencascade.com>
Fri, 6 Dec 2013 07:55:35 +0000 (07:55 +0000)
committerrnv <rnv@opencascade.com>
Fri, 6 Dec 2013 07:55:35 +0000 (07:55 +0000)
src/GEOMToolsGUI/GEOMToolsGUI.cxx

index f774f30001ea31ff198cfb2d80409856f6de2818..8ac38a4bba7ff7cd011a0b0ba89a27f10da75cc1 100644 (file)
@@ -725,8 +725,8 @@ bool GEOMToolsGUI::Import()
       app->putInfo( tr( "GEOM_PRP_LOADING" ).arg( SUIT_Tools::file( fileName, /*withExten=*/true ) ) );
       anOp->start();
 
-      CORBA::String_var fileN = fileName.toLatin1().constData();
-      CORBA::String_var fileT = aCurrentType.toLatin1().constData();
+      CORBA::String_var fileN = fileName.toUtf8().constData();
+      CORBA::String_var fileT = aCurrentType.toUtf8().constData();
 
       // jfa 21.08.2012 for mantis issue 21511 (STEP file units)
       CORBA::String_var aUnits = aInsOp->ReadValue(fileN, fileT, "LEN_UNITS");
@@ -945,7 +945,7 @@ bool GEOMToolsGUI::Export()
 
       anOp->start();
 
-      aInsOp->Export( anObj, file.toStdString().c_str(), fileType.toLatin1().constData() );
+      aInsOp->Export( anObj, file.toUtf8().constData(), fileType.toUtf8().constData() );
 
       if (aInsOp->IsDone())
         anOp->commit();