Change qPrintable to qUtf8Printable to better support non-ASCII text

This commit is contained in:
LostDragonist
2019-01-05 16:34:11 -06:00
parent b939f7e88e
commit c9d77cf948
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ bool ProxyPython::init(IOrganizer *moInfo)
return true;
} else {
DWORD error = ::GetLastError();
qCritical("Failed to load python runner (%s): %s", qPrintable(m_TempRunnerFile), qPrintable(windowsErrorString(error)));
qCritical("Failed to load python runner (%s): %s", qUtf8Printable(m_TempRunnerFile), qUtf8Printable(windowsErrorString(error)));
if (error == ERROR_MOD_NOT_FOUND) {
m_LoadFailure = FAIL_MISSINGDEPENDENCIES;
}
+1 -1
View File
@@ -1408,7 +1408,7 @@ QList<QObject*> PythonRunner::instantiate(const QString &pluginName)
return interfaceList;
} catch (const bpy::error_already_set&) {
qWarning("failed to run python script \"%s\"", qPrintable(pluginName));
qWarning("failed to run python script \"%s\"", qUtf8Printable(pluginName));
reportPythonError();
}
return QList<QObject*>();