summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qlogging.cpp
diff options
context:
space:
mode:
authorAlejandro Exojo <suy@badopi.org>2014-03-10 10:59:36 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-14 22:40:07 +0100
commitd7eb0a632a791d528a819666582a29f4bfed12e4 (patch)
treee194e69d8b690faa3c515a2fe35ef6b416586a2e /src/corelib/global/qlogging.cpp
parentd5dcd6d16647e4ecac239fa26ade5963f0e3f933 (diff)
Fix one bogus print to stderr: use toLocal8Bit()
Change-Id: I86341ccbd0251a9c858a5e1a9b7ea291d73cda01 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r--src/corelib/global/qlogging.cpp2
1 files changed, 1 insertions, 1 deletions
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)