[osgeo4w-dev] [osgeo4w] #626: Standalone installer for QGIS 3.12 incorrectly displays the release name as Bucure?ti

OSGeo4W trac_osgeo4w at osgeo.org
Wed Apr 15 01:37:09 PDT 2020


#626: Standalone installer for QGIS 3.12 incorrectly displays the release name as
Bucure?ti
------------------------+---------------------------
Reporter:  andreaerdna  |      Owner:  osgeo4w-dev@…
    Type:  defect       |     Status:  new
Priority:  minor        |  Component:  Installer
 Version:               |   Keywords:
------------------------+---------------------------
 Standalone installer for QGIS 3.12 'București' incorrectly displays the
 release name as Bucure?ti instead of București, at least on Windows 10 64
 bit localised in Italian.

 [[Image(https://user-
 images.githubusercontent.com/16253859/78079587-b5ce8080-73ac-
 11ea-8027-18e98b34b0bb.png)]]

 The same doesn't occur with the standalone installer for QGIS 3.10 'A
 Coruña'.

 This is probably caused by the fact that while the ñ char (U+00F1 Latin
 Small Letter N with tilde) is mapped in the Latin-1 Supplement and
 Windows-1252 codepage, whereas the ș char (U+0219 Latin Small Letter S
 with Comma Below) is not.

 Moreover, the standalone installer for QGIS 3.12 incorrectly sets the
 following Values in the Windows Registry:


 {{{
 VersionName = "Bucure?ti" in HKLM\SOFTWARE\QGIS 3.12

 DisplayName = "QGIS 3.12.0 'Bucure?ti'" in
 HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\QGIS 3.12

 }}}

 I have done some tests, and it seems that it is possible to solve the
 problem in the following way (building the installer on Windows):

 1.
 a. use NSIS version 2.50.0-Unicode
 (https://github.com/jimpark/unsis/releases)
 or
 b. use NSIS version 3.05 and add the option Unicode true in QGIS-
 Installer.nsi

 2.
 and in the creatensis.pl perl script, use the modules
 Win32::Unicode::Process and Encode qw(decode) and change the system calls
 to makensis as:


 {{{
 $cmd = decode( "UTF-8", "makensis -DINNER=1 -DUNINSTALLERDEST='$instdest'
 -DINSTALLER_NAME='makeuinst.exe' $args" );
 systemW($cmd);

 }}}


 {{{
 $cmd = decode( "UTF-8", "makensis -DINSTALLER_NAME=$installerbase.exe
 $args" );
 systemW($cmd);
 }}}

 [[Image(https://user-
 images.githubusercontent.com/16253859/78218396-01248400-74be-11ea-
 9a47-7d40ee792901.png)]]

 Previously reported on !GitHub https://github.com/qgis/QGIS/issues/35453

-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/626>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list