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

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Platform/s:
      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

            • Assignee:
              installerteam Installer Team
              Reporter:
              linusklan Krzysztof Guc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes