From 9c631c67b1706c5803c006e948d097caf02b9d66 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 6 Dec 2013 07:55:35 +0000 Subject: [PATCH] Fix for the "0022421: EDF 2805 GEOM: Save in a repertory with an accent fails" issue. --- src/GEOMToolsGUI/GEOMToolsGUI.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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();