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

QTextCodec::availableCodecs() does not list all codecs when ICU is enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.4.1
    • None

    Description

      For a simple test-case listing all available codecs, see QTBUG-38496.

      QTextCodec::availableCodecs() first checks if a list of codecs is cached. If not, it runs setup (qtextcodec.cpp@603) which is empty if ICU is used (qtextcodec.cpp@299). Then it adds all codecs returned by QIcuCodec::availableCodecs() (qtextcodec.cpp@613) and returns the list.
      QIcuCodec::availableCodecs() only returns the ICU codecs, however, plus "TSCII" (qicucodec.cpp@405). Yet QIcuCodec::codecForNameUnlocked() may also return Qt's built-in codecs as per loadQtCodec() (qicucodec.cpp@506 and qicucodec.cpp@346).

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            st.loeffler Stefan Löffler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes