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

QDir::cleanPath behaves wrong with "/."

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 4.6.2, 4.7.0
    • Core: I/O
    • None
    • linux 2.6.34, maemo 5, MSVC2008
    • eedefa28bd66123f7787e989a4e4bccbb09f20bc

    Description

      Some examples:
      <__ed> qDebug() << QDir::cleanPath("/");
      <qDebug> "/"
      <__ed> qDebug() << QDir::cleanPath("/.");
      <qDebug> ""
      <__ed> qDebug() << QDir::cleanPath("/./");
      <qDebug> "/"

      I think that QDir::cleanPath("/.") should return "/", not the empty string

      Attachments

        Issue Links

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

          Activity

            People

              owolff Oliver Wolff
              tilarids Sergey Kishchenko
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes