Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.5.0 Beta
-
None
-
Kubuntu 15.04 x64
Qt 5.5.0 beta opensource linux x64
gcc 4.9.2
Qt Creator 3.4.0
Description
Wrong debug output for utf8-string
example
#include <QDebug> int main() { qDebug() << "test1" << "\u0410\u041D\u0422\u0410\u0420\u041A\u0422\u0418\u041A\u0410"; QString str("\u0410\u041D\u0422\u0410\u0420\u041A\u0422\u0418\u041A\u0410"); qDebug() << "test2" << str; qDebug() << "test3" << QString::fromUtf8("\u0410\u041D\u0422\u0410\u0420\u041A\u0422\u0418\u041A\u0410"); return 0; }
Qt 5.4.1 output:
test1 АНТАРКТИКА test2 "АНТАРКТИКА" test3 "АНТАРКТИКА"
Qt 5.5.0 beta output:
test1 АНТАРКТИКА test2 "\u0410\u041D\u0422\u0410\u0420\u041A\u0422\u0418\u041A\u0410" test3 "\u0410\u041D\u0422\u0410\u0420\u041A\u0422\u0418\u041A\u0410"