Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
8
-
Foundation Sprint 107, Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111, Foundation Sprint 112, Foundation Sprint 113, Foundation Sprint 114, Foundation Sprint 115, Foundation Sprint 116, Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121, Foundation Sprint 122, Foundation Sprint 123
Description
When we ported QXmlStreamReader to QAnyStringView, the ctor was left to do, essentially, d->dataBuffer = data.toString().toUtf8(). In particular, the L1 case is first converted to U16 and then to U8. The reason this is done so is that addData() can assume that dataBuffer is in U8 encoding. But then addData()'s re-setting of the decoder is problematic when the dataBuffer still contains unparsed data (can it?).
The idea of the QAnyStringView ctor is to not convert, but adjust the decoder accordingly.