fix encoding when printing debug under wince

the strings are in local8bit format, not latin1

Change-Id: I19f20b0310351aacb26b70d8053ed267e710986f
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
bb10
Oswald Buddenhagen 2013-03-06 10:59:35 +01:00 committed by The Qt Project
parent 5df9a95d2c
commit cca1cca53d
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ namespace QTest {
void QPlainTestLogger::outputMessage(const char *str)
{
#if defined(Q_OS_WINCE)
QString strUtf16 = QString::fromLatin1(str);
QString strUtf16 = QString::fromLocal8Bit(str);
const int maxOutputLength = 255;
do {
QString tmp = strUtf16.left(maxOutputLength);