mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Change qPrintable to qUtf8Printable to better support non-ASCII text
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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*>();
|
||||
|
||||
Reference in New Issue
Block a user