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

Standardize on all the char* arguments of qtestlib being UTF-8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0 (Next Major Release)
    • Fix Version/s: None
    • Component/s: Testing: qtestlib
    • Labels:
      None

      Description

      It happened ( QTBUG-80527 ) that unicode characters (the degree symbol of QCoordinate) were being passed through .toLatin1() causing corrupt data, before being passed as const char * to the description argument of QTestResult::verify().

      To avoid these corruptions, we should say that all const char * arguments of qtestlib accept only UTF-8 encoded strings, and change all conversions to use .toUtf8().

      Another thing we could do is add QString overloads to verify(), see QTBUG-81473.

      Edward Welbourne Tor Arne Vestbø as we discussed.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              macadder Jason McDonald
              Reporter:
              jimis Dimitrios Apostolou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes