Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.3
-
None
-
-
c25541e9a (dev), 94c62e322 (dev), 6bef40cb8 (6.7), bdb713b1b (6.7), 47dd5b7ae (tqtc/lts-6.5), f843cd0d0 (tqtc/lts-6.5)
Description
Calling QXmlStreamWriter::writeCharacters with an UTF-8 encoded string (as a QAnyStringView) parameter fails, while the UTF-16 representation (as a QString) succeeds.
To replicate the problem, compile and run attached program. The expected output in the label shown is "0 0", but the label shows "0 1" (an error on the second call to QXmlStreamWriter::writeCharacters).
Attachments
For Gerrit Dashboard: QTBUG-122241 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
540607,4 | QXmlStreamWriter: decode UTF-8 into code points | dev | qt/qtbase | Status: MERGED | +2 | +1 |
540608,4 | QXmlStreamWriter: fix attempts to write bad QStrings | dev | qt/qtbase | Status: MERGED | +2 | 0 |
556129,2 | QXmlStreamWriter: decode UTF-8 into code points | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
556131,2 | QXmlStreamWriter: fix attempts to write bad QStrings | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
557403,2 | QXmlStreamWriter: decode UTF-8 into code points | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
557404,2 | QXmlStreamWriter: fix attempts to write bad QStrings | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | +1 |