Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-124636

QXmlStreamReader: don't convert input

    XMLWordPrintable

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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmutz Marc Mutz
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes