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

QUrl::fromLocalFile() shouldn't convert backslashes on linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.0
    • Core: URL Handling
    • None
    • debian amd64

    Description

      QUrl::fromLocalFile() shouldn't convert backslashes to slashes on linux (contrary to windows, backslashes are allowed in a file name)

      qDebug() << QUrl::fromLocalFile("/tmp/te\\st/file.txt").toString();
        // output is "file:///tmp/te/st/file.txt"
        // instead of "file:///tmp/te\st/file.txt"
        // or "file:///tmp/te%5Cst/file.txt"
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            pfister Christoph Pfister
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes