Salome HOME
PyInterp prepare for qt6.
[modules/gui.git] / tools / PyConsole / src / PyConsole_Request.cxx
index aa41c259ec1753d09ab02aea575a24e88b28877c..10ef5fa94a739327a1730fe68b3c400cde7a0374 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -56,7 +56,7 @@ PyConsole_ExecCommand::PyConsole_ExecCommand( PyInterp_Interp*        theInterp,
 void PyConsole_ExecCommand::execute()
 {
   if ( myCommand != "" ) {
-    int ret = getInterp()->run( myCommand.toLatin1().data() );
+    int ret = getInterp()->run(myCommand.toUtf8());
     if ( ret < 0 )
       myState = PyInterp_Event::ES_ERROR;
     else if ( ret > 0 )