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

QUrl.toLocalFile returns nothing if given non-canonical path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 4.8.0
    • Fix Version/s: 4.8.1
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      Linux, Fedora 16
    • Commits:
      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

              Assignee:
              earthdomain Earth Domain (Inactive)
              Reporter:
              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