Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-1436

installer change license file encoding utf-8 to windows-1252

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 4.5.0
    • 3.1.1
    • General
    • None
    • Windows

    Description

      J have license file in html format (utf-8 encoded).

      my package.xml include it, ex:
      <Licenses>
      <License name="My license" file="license.html" />
      </Licenses>

       

      license.html is write in utf-8 and has header:
      <meta http-equiv="content-type" content="text/html; charset=utf-8"/>

      After instalation license.html file located in Licenses subdirectory has
      changed the encoding from utf8 to windows-1252.

      J loook to source code and I found someting that in licenseoperation.cpp
       
      {{bool LicenseOperation::performOperation(){
      ...for (QVariantMap::const_iterator it = licenses.constBegin(); it != licenses.constEnd(); ++it)

      { QFile file(targetDir + QLatin1Char('/') + it.key()); .... QTextStream stream(&file); stream << it.value().toString(); }

      }}}

      Text is converted to default encoding system in this palce:

      QTextStream stream(&file);stream << it.value().toString();
       

      but my license is in html format, it can not be converted to default
      system text encoding.

       

      Attachments

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

        Activity

          People

            installerteam Installer Team
            linusklan Krzysztof Guc
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes