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

QRegExp WildcardUnix mode has bogus semantics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 4.7.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes