Fix conversion from 8-bit to QString without proper encoding

Found by ICC.

Change-Id: Icd89e7df828afdb2acf2c46e00698ef04d5d94c9
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: John Layt <jlayt@kde.org>
This commit is contained in:
Thiago Macieira 2013-09-22 19:01:49 -07:00 committed by The Qt Project
parent 645f9d959f
commit 58b08ba40b

View File

@ -4898,7 +4898,7 @@ QDebug operator<<(QDebug dbg, const QDateTime &date)
break;
case Qt::TimeZone:
#ifndef QT_BOOTSTRAPPED
spec = QStringLiteral(" Qt::TimeZone ") + date.timeZone().id();
spec = QStringLiteral(" Qt::TimeZone ") + QString::fromLatin1(date.timeZone().id());
break;
#endif // QT_BOOTSTRAPPED
case Qt::LocalTime: