qt6-bb10/tests/auto/corelib/xml/qxmlstream
Ulf Hermann 3b5b8f1d4a QXmlStreamWriter: Avoid writing invalid characters
Some valid UTF-16 characters cannot be expressed in XML 1.0 and a
QString may contain invalid unicode. In both cases we should not write
the respective data to the output stream, as that generates invalid XML,
which then cannot be read back by QXmlStreamReader. In addition we
should report an error if we encounter them.

The change filters the incorrect strings from the output and introduces
an "encodingError" flag which is reported from hasError().

[ChangeLog][Important Behavior Changes] Characters invalid in XML, such
as 0x0 or 0xfffe, as well as strings containing unmatched UTF-16
surrogates are now suppressed from the output of QXmlStreamWriter and
cause the error flag to be set.

Task-number: QTBUG-63150
Change-Id: Ia29bab768fed9681dd68e8934da2a7e3fcdfc3cd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-09-13 07:29:00 +00:00
..
XML-Test-Suite Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
data Fix QXmlStreamReader parsing of files containing NULs 2015-01-24 18:35:22 +01:00
.gitattributes Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
.gitignore Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
XML-Test-Suite-LICENSE.txt Moving relevant tests to corelib/xml 2011-09-01 13:08:32 +02:00
qc14n.h Updated license headers 2016-01-21 18:55:18 +00:00
qxmlstream.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
setupSuite.sh Updated license headers 2016-01-21 18:55:18 +00:00
tst_qxmlstream.cpp QXmlStreamWriter: Avoid writing invalid characters 2017-09-13 07:29:00 +00:00