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

Qt compares invalid UTF-16/UTF-8 sequences as equal to ones containing QChar::ReplacementCharacter at same location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10.0 Beta3
    • None

      E.g. currently "\x4E"_ba == u"\xFFFE"_s. They should not be the same. That begs the question which one should be sorted first, or whether we should assert on this (probably not), but they should definitely not sort equal.

      Ditto probably (didn't verify, yet) with UTF-16/UTF-16 comparisons involving invalid surrogate pairs and/or replacement characters.

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

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes