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

Clean up use of range-expressions in regexes

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • Other
    • None
    • Any platform using glibc (please add all you know of to Platform/s)

    • Linux/X11, Other

    Description

      Range-expressions like [a-z] and [0-9] are widely used in regular expressions.
      However, the POSIX spec says their meaning is locale-dependent; and glibc 2.28 apparently intends to implement this faithfully, which shall break range-expressions in many contexts.

      This is likely to break shell-scripts using such ranges in glob; and may break other uses of regular expressions. We shall need to review our use of such ranges and aim to convert them, e.g. using [[:lower:]] for [a-z] and [[:digit:]] for [0-9], before too much of the world has gone over to glibc 2.28.

      Attachments

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

        Activity

          People

            Eddy Edward Welbourne
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes