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

QUrl::toLocalFile returns incorrect path on Unix platforms when the top level path contains ':'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0 Beta 1, 5.0.0
    • 4.7.0, 4.7.1, 4.7.2, 4.7.3, 4.8.0
    • Core: I/O
    • None
    • fd7e1cef9cc06a2e36d98942c6e929ee5589952e

    Description

      The code in QUrl::toLocalFile that takes care to make sure file drives on Windows are returned without the leading slash needs to be ifdef'ed so that it only applies on Windows. Otherwise, "file:///F:/" on Unix-like platforms will return "F:/" instead of "/F:/". This causes bugs like the one reported downstream:

      http://bugs.kde.org/show_bug.cgi?id=194746

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            adawit Dawit A
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes