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

QDir::cleanPath behaves wrong with "/."

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes