From bf3aa9bf067dd65595faabf1bfd980a19c444465 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Tue, 5 Mar 2013 11:37:36 +0100 Subject: [PATCH] More fixes for non-Latin1 characters in external tools. Now also for Qt4 based Windows builds. Task-number: QTCREATORBUG-8603 Change-Id: I2f4ccfe85450f272146cc641023b9232f3514836 Reviewed-by: Friedemann Kleint --- src/plugins/coreplugin/externaltool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/externaltool.cpp b/src/plugins/coreplugin/externaltool.cpp index 1d3a5bdc969..9c1703e01f6 100644 --- a/src/plugins/coreplugin/externaltool.cpp +++ b/src/plugins/coreplugin/externaltool.cpp @@ -319,7 +319,8 @@ static void localizedText(const QStringList &locales, QXmlStreamReader *reader, } else { if (*currentLocale < 0 && currentText->isEmpty()) { *currentText = QCoreApplication::translate("Core::Internal::ExternalTool", - reader->readElementText().toUtf8().constData()); + reader->readElementText().toUtf8().constData(), + "", QCoreApplication::UnicodeUTF8); } else { reader->skipCurrentElement(); }