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

QUrl::toPercentEncoding broken on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.6.2
    • Core: URL Handling
    • None
    • Android 7.0, Android 4.1.2

    Description

      QUrl::toPercentEncoding gives me a seemingly bogus floating point number instead of percent encoding:

      Code is something like this:
      PRINT("%s\n", QUrl::toPercentEncoding(input).constData());

      Input QString: "qwerty<|>"
      Encoded string:
      "qwerty%3C%7C%3E" (Mac, iOS, website verification)
      "qwerty C C-1.676279E-194" (Android)

      The floating point number in the encoded string changes and is apparently bogus/random.

      Android Tests
      input="happy" encoded="happy"
      input="123" encoded="123"
      input="qwerty<|>" encoded="qwerty C C-3.612191E-184"
      input="me@here" encoded="me -3.612191e-184re"
      input="help!" encoded="help "
      input="*" encoded="-0X1.88EC6989DD34CP-610"

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            chris_mylingo Chris Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes