forked from qt-creator/qt-creator
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:
@@ -319,7 +319,7 @@ static void localizedText(const QStringList &locales, QXmlStreamReader *reader,
|
|||||||
} else {
|
} else {
|
||||||
if (*currentLocale < 0 && currentText->isEmpty()) {
|
if (*currentLocale < 0 && currentText->isEmpty()) {
|
||||||
*currentText = QCoreApplication::translate("Core::Internal::ExternalTool",
|
*currentText = QCoreApplication::translate("Core::Internal::ExternalTool",
|
||||||
reader->readElementText().toLatin1().constData());
|
reader->readElementText().toUtf8().constData());
|
||||||
} else {
|
} else {
|
||||||
reader->skipCurrentElement();
|
reader->skipCurrentElement();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user