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

On MS-Win, QDir::absoluteFilePath() doesn't add a drive to a path that starts with a backslash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • 5.6.0 Beta, 5.6.0
    • Core: Other
    • None
    • MinGW/MS-Win
    • e86f3c018833141776db2d15772ba53995656eac, 54190595efe55bdbb647c69fa7b0a43d3f84dd68

    Description

      On MS-Win, a path such as \Users\qt\build\qtbase\bin\qmake.exe gets classified as "absolute" because it starts with a backslash, but its lack of a drive letter means it's not properly absolute.
      QDir::absoluteFilePath() returns the path it's given if this is "absolute" even in this missing-drive sense.
      This can result in problems for clients, e.g. qmake settings its QMAKE_QMAKE variable to the exact path given above, which leads to QNX builds on MinGW failing; this delayed the 5.6.0 release.

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              Eddy Edward Welbourne
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: