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

QTextCodec::codecForName("System") returns NULL in windows when compiled with ICU

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.11.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      mingw64, windows 10 64bit
    • Platform/s:
      Windows

      Description

      I have compiled Qt for windows 64 in mingw64 with ICU support.

      Attempting then to use "System" codec in QTextCodec::codecForName ("System"), returns null.

      However, using: QTextCodec::codecForLocale(); returns codec "windows-1252"

      Codewise:

       QTextCodec * d1 = QTextCodec::codecForName ("System");
       qDebug("%s", d1 ? qPrintable(d1->name()) : "<null>"); // currently prints "<null>"
       
       QTextCodec * d2 = QTextCodec::codecForLocale();
       qDebug("%s", d2 ? qPrintable(d2->name()) : "<null>"); // currently prints "windows-1252"
      

       
      I would expect both to be the same? and at least not NULL, for the System.

        Attachments

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

          Activity

            People

            • Assignee:
              thiago Thiago Macieira
              Reporter:
              lostbard John Donoghue
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes