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

[Linux Regression] QString::toLatin1 doesn't support all of Latin 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.2.1
    • None
    • Fedora 20 x86_64 Linux Qt 5.2.1 downloaded from qt-project.org

    Description

      This example:

      #include <QCoreApplication>
      #include <QString>
      #include <QByteArray>
      #include <iostream>
      using namespace std;
      
      int main(int argc, char *argv[])
      {
          QCoreApplication a(argc, argv);
      
          cout << QString("abcABCåäöÅÄÖ").toLatin1().data() << endl;
      
          return a.exec();
      }
      

      Prints abcABC�����

      åäöÅÄÖ is part of Latin1 and I didn't have this issue in prior Qt 5.1. I'm using Qt on Linux and I think this is not an issue on the Windows version.

      Attachments

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

        Activity

          People

            ogoffart Olivier Goffart (Woboq GmbH)
            alexhultman Alex Hultman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes