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

QXmlStreamReader: don't convert input

    XMLWordPrintable

Details

    • Foundation Sprint 107

    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