diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index d8ef8a57a8..f67b87e2bc 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1225,7 +1225,7 @@ static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &con logMessage.chop(1); systemd_default_message_handler(type, context, logMessage); } else { - fprintf(stderr, "%s", logMessage.toUtf8().constData()); + fprintf(stderr, "%s", logMessage.toLocal8Bit().constData()); fflush(stderr); } #elif defined(Q_OS_ANDROID)