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

QXmlStreamWriter::writeCharacters() doesn't properly escape control characters, causing QXmlStreamReader::readNext() to raise an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.6.3, 4.7.1
    • None
    • Any

      Using writeCharacters() should yield output that is parseable by QXmlStreamReader.
      But if the source string contains, for example, the ESC character (0x1B), that won't get escaped, and as a result, the reader will raise an error.
      Either writeCharacters() should escape those characters, or QXmlStreamReader must accept them in the input stream.

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

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            sirreal Johan Lindh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes