From: rnv Date: Fri, 6 Dec 2013 07:55:35 +0000 (+0000) Subject: Fix for the "0022421: EDF 2805 GEOM: Save in a repertory with an accent fails" issue. X-Git-Tag: V7_3_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c631c67b1706c5803c006e948d097caf02b9d66;p=modules%2Fgeom.git Fix for the "0022421: EDF 2805 GEOM: Save in a repertory with an accent fails" issue. --- diff --git a/src/GEOMToolsGUI/GEOMToolsGUI.cxx b/src/GEOMToolsGUI/GEOMToolsGUI.cxx index f774f3000..8ac38a4bb 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI.cxx @@ -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();