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

QDirIteratorPrivate assert triggered from QDir::entryList

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 5.12.12
    • 5.0.0
    • Core: I/O
    • None
    • Linux with a posix locale

      Given a file created with "touch `printf '\350\277\231'`" and a posix locale.

      Doing a QDir::entryList() on the directory containing this file results in an assert in QDirIteratorPrivate::matchesFilters(const QString&, const QFileInfo&).

      The filename given to matchesFilters is empty (probably because of the failed conversion to unicode).
      Qt should not assert in this case.

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

            stromme Christian
            sacu Sascha Cunz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes