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

QAnyStringView('\xE4') creates an invalid UTF-8 string (expected: valid L1)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • None
    • 3
    • Foundation Sprint 108, Foundation Sprint 109, Foundation Sprint 110, Foundation Sprint 111

    Description

      QAnyStringView('\xE4') {{visit()}}s as an invalid QUtf8StringView. Expected would be a valid QLatin1StringView containing 'ä'.

      This is because the const Char & ctor uses the Char type to determine the tag and since "ä" is by Qt convention UTF-8, so is char. This is correct, but inconsistent with the rest of Qt APIs which treat char as QLatin1Char.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-125730
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews