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

QRegExp WildcardUnix mode has bogus semantics

XMLWordPrintable

      commit e7c36fc2 introduced the WildcardUnix mode.

      first of all, the justification for that mode is bogus: even in "normal" glob mode, all wildcard characters can be escaped by simply putting them into square brackets. adding a new mode just adds confusion by giving people even more to learn instead of trying to understand what has worked for three+ decades. i'd immediately deprecate that mode again.

      second, the handling of backslashes is broken: in the case '
      ' if (enableEscaping) if (isEscaping) branch, the isEscaping flag must be reset, not set again.
      attached is a patch which should fix it. i leave (auto-)testing it to the author of that code.

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

            thiago Thiago Macieira
            buddenha Oswald Buddenhagen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes