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)
}}}
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
For Gerrit Dashboard: QTIFW-1436 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
427612,3 | Set encoding to UTF-8 when writing license file | 4.4 | installer-framework/installer-framework | Status: MERGED | +2 | 0 |