Don't destroy non-Latin1 characters when reading external tools.

Task-number: QTCREATORBUG-8603

Change-Id: Ie8a0265165cf1fc3e806335738185de97a062c4f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Eike Ziller
2013-02-27 17:44:48 +01:00
parent 01db67fd97
commit 0e0ce962bf

View File

@@ -319,7 +319,7 @@ static void localizedText(const QStringList &locales, QXmlStreamReader *reader,
} else {
if (*currentLocale < 0 && currentText->isEmpty()) {
*currentText = QCoreApplication::translate("Core::Internal::ExternalTool",
reader->readElementText().toLatin1().constData());
reader->readElementText().toUtf8().constData());
} else {
reader->skipCurrentElement();
}