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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.0
    • Testing: qtestlib
    • None

      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.

      Eddy vestbo as we discussed.

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

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

              Created:
              Updated:

                There are no open Gerrit changes