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

QUrl.toLocalFile returns nothing if given non-canonical path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 4.8.0
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      Linux, Fedora 16

      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

        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:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes