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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0
    • Testing: qtestlib
    • 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.

      Eddy vestbo 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

              macadder Jason McDonald
              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