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

QStringConverter/Win doesn't handle resumption for encodings with more than 2 octets per character for convertToUnicode

    XMLWordPrintable

Details

    • Windows
    • 8
    • 13fbedd16 (dev), cfd963909 (6.6), d44aae135 (dev), 3a5339b41 (dev), ba8b0fdcf (6.6), b93d92f43 (tqtc/lts-6.5), 2e9bb2ee5 (dev), 94214fe10 (dev), e1180150e (6.6), 8d1dfdd91 (6.6), 5e0c6b5fa (6.6), 50304af36 (tqtc/lts-6.5), ca3a17b1f (tqtc/lts-6.5)
    • Foundation Sprint 93, Foundations Sprint 94

    Description

      (QLocal8Bit::convertToUnicode_sys)
      For example, the character '𠂇' from the GB 18030 character set is encoded as 4 octets.
      Right now we receive the error "Invalid flags." from the Windows API we use. But even in theory, dropping the incompatible flag, we are only at most storing 1 octet in the state for resumption.
      So, even if we handled this case we would fail in the cases where there is 2 or 3 octets provided.

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            manordheim Mårten Nordheim
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes