From c9d77cf9485127a75660a66ae09376351c03df88 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Sat, 5 Jan 2019 16:34:11 -0600 Subject: [PATCH] Change qPrintable to qUtf8Printable to better support non-ASCII text --- src/proxy/proxypython.cpp | 2 +- src/runner/pythonrunner.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy/proxypython.cpp b/src/proxy/proxypython.cpp index 7220470..44169b5 100644 --- a/src/proxy/proxypython.cpp +++ b/src/proxy/proxypython.cpp @@ -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; } diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 436b7c2..f8f8c16 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -1408,7 +1408,7 @@ QList 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();