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

QDir::cleanPath does not work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.1.1
    • Core: I/O
    • None

    Description

      Using QDir:::cleanPath on relative Windows file names does not yield the documented result, e.g.

      QString s("windows\\path");
      qDebug("%s->%s", qPrintable(s), qPrintable(QDir::cleanPath(s)));
      

      displays on my Linux machine the following output:

      windows\path->windows\path
      

      I would expect Linux path separators.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            mlangen Marc Langenbach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes