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

QTextCodec::canEncode does not work for ICU conversions

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11, Linux/Other display system
    • 21
    • Foundation_Sprint 41 (Team 1), Team 1 Foundation_Sprint 42

    Description

      When checking whether a string can be successfully encoded, QTextCodec::canEncode always returns true for conversions using ICU.

      The problem is that QIcuCodec::convertFromUnicode does not set state.invalidChars, which is what QTextCodec::canEncode checks to determine if a string can be encoded.

      Attached is a small minimal working example.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-83081
          # Subject Branch Project Status CR V

          Activity

            People

              ivan.solovev Ivan Solovev
              viccie30 Victor Westerhuis
              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