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

QUrl.toLocalFile returns nothing if given non-canonical path

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Not Evaluated
    • Resolution: Done
    • 4.8.0
    • 4.8.1
    • Core: I/O
    • None
    • Linux, Fedora 16
    • 182acb541a7b8ac0edca842fdc867751df723f50

    Description

      Using some PyQt4 code to demonstrate:

      python -c "from PyQt4 import QtCore; print 'File: %s' % QtCore.QUrl('foo.txt').toLocalFile()"

      Against Qt 4.7.x, this function returns:

      File: foo.txt

      Using Qt 4.8.0-rc1, this function outputs:

      File:

      We noticed the impact affecting KDE's KUrl class, and that all audio system notifications configured that reference media files like "KDE-K3B-Finish-Success.ogg" now fail (whereas "/usr/share/sounds/KDE-K3B-Finish-Success.ogg" works).

      Attachments

        Issue Links

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

          Activity

            People

              earthdomain Earth Domain (Inactive)
              rdieter Rex Dieter
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes