qt5base-lts/tests/auto/corelib/serialization/qtextstream
Marc Mutz 7905b624fd QTextStream: fix streaming of char16_t's
Clazy complains about all uses of QLatin1Char these days, but if one
actually applies the fixit to turn

   out << QLatin1Char(' ');

into

   out << u' ';

the space is now streamed as an int (20), not as a space.

Fix by providing an explicit char16_t overload.

[ChangeLog][QtCore][QTextStream] Added op<<(char16_t).

[ChangeLog][Important Behavior Changes] QTextStream streams char16_t's
as QChars now instead of outputting the numeric value. If you want to
preserve the old behavior, cast the char16_t to a numeric type, such
as ushort or int, and stream that. This is backwards-compatible.

Pick-to: 6.3
Change-Id: I42d422cdebb27d38ac1714b22ef186642ec407e7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-05-03 11:44:56 +02:00
..
readAllStdinProcess qtextstream.h: streamline includes 2022-02-10 04:34:13 +01:00
readLineStdinProcess Remove the qmake project files 2021-01-07 15:32:28 +01:00
resources Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
stdinProcess Remove the qmake project files 2021-01-07 15:32:28 +01:00
test CI: Add docker support for tst_qtextstream test 2022-03-24 22:09:43 +02:00
.gitattributes Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
.gitignore Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
BLACKLIST Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
CMakeLists.txt cmake: add tests in corelib/serialization 2019-10-07 08:57:31 +00:00
qtextstream_integrity.qrc Fix tst_qtextstream / tst_json run time failures on INTEGRITY device 2021-12-28 09:24:58 +02:00
qtextstream.qrc Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
rfc3261.txt Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
task113817.txt Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00
tst_qtextstream.cpp QTextStream: fix streaming of char16_t's 2022-05-03 11:44:56 +02:00