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

Qt 5.8 for mac is failing to read bytearrays

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Beta 2
    • 5.8.0
    • Core: Other
    • None
    • macOS 10.12, xcode 8.2.1
    • macOS
    • b8dbde10a065c3ba95b794b6d53ff62e8ca22ee7

    Description

      if you take the attached file which was created with the following code

          QVariant value = QByteArray::fromBase64("RBxVAAsDVsO/");
          QSettings settings("/tmp/toto.plist", QSettings::NativeFormat);
          settings.setValue("fwPasswordData", value);
      

      Put it in /tmp and then run the following code:

          QSettings settings("/tmp/toto.plist", QSettings::NativeFormat);
          qDebug() << "RES" << settings.value("fwPasswordData").toByteArray();
      

      For me the result is that it says:

      RES "\x00\x00\x00\x00\x00\x00\x00\xF0\x00"

      But that's clearly not the right value.

      Attachments

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

        Activity

          People

            thierryb Thierry Bastian
            thierryb Thierry Bastian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes