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

QUrl::setPath and QUrl::fromUserInput encodes local paths differently from QUrl::fromLocalFile

    XMLWordPrintable

Details

    • All
    • f3da9d3c8 (dev), 01ff6e19f (6.9), 14a848014 (6.8)

    Description

      https://github.com/qt/qtbase/commit/5e936b60fc921e21b8153a83113886a1de333b57 changes QUrl::fromLocalFile to percent-encode square brackets. However, a local QUrl constructed by QUrl::setPath and QUrl::fromUserInput (and possibly QUrl::setScheme?) doesn't do the encoding, resulting in regressions in user code (e.g. https://bugs.kde.org/show_bug.cgi?id=502280). It would be desirable that local QUrls representing the same path would be equal no matter how they are constructed.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            genericity Jin Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes