diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-03-06 12:35:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-12 18:13:37 +0100 |
commit | 27b3746b33006afd2d2153e529e9d5b2886a900b (patch) | |
tree | c255074a37e4b884d0e0ab2617f19198e5308189 /src | |
parent | cca1cca53dccb19a455d58d1adc895e1827db4e2 (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.cpp | 2 |
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) |