summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-03-06 12:35:31 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-12 18:13:37 +0100
commit27b3746b33006afd2d2153e529e9d5b2886a900b (patch)
treec255074a37e4b884d0e0ab2617f19198e5308189 /src
parentcca1cca53dccb19a455d58d1adc895e1827db4e2 (diff)
fix encoding when invoking default message handler
the output is local8bit, not latin1. Change-Id: Ib1ab260ac378b354c5ab47856ce6c6c657caefd4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src')
-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 6a127e1786..ccb09a84d4 100644
--- a/src/corelib/global/qlogging.cpp
+++ b/src/corelib/global/qlogging.cpp
@@ -891,7 +891,7 @@ static void qDefaultMessageHandler(QtMsgType type, const QMessageLogContext &con
static void qDefaultMsgHandler(QtMsgType type, const char *buf)
{
QMessageLogContext emptyContext;
- qDefaultMessageHandler(type, emptyContext, QLatin1String(buf));
+ qDefaultMessageHandler(type, emptyContext, QString::fromLocal8Bit(buf));
}
static void qt_message_print(QtMsgType msgType, const QMessageLogContext &context, const QString &message)