]> git.proxmox.com Git - pve-installer.git/commitdiff
fix #2313: load country.dat file with utf8 encoding
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 9 Aug 2019 10:47:55 +0000 (12:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 12 Aug 2019 15:36:37 +0000 (17:36 +0200)
this fixes the display and selection problem with countries that
have non-ascii symbols in them, like "Côte d'Ivoire"

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
proxinstall

index 963152aaa8df5bcfed4a1ddbf742057a223905cc..d9e221189a20d64b984d75f53af26d291db8c650 100755 (executable)
@@ -620,7 +620,7 @@ sub hd_list {
 
 sub read_cmap {
     my $countryfn = "${proxmox_libdir}/country.dat";
-    open (TMP, "<$countryfn") || die "unable to open '$countryfn' - $!\n";
+    open (TMP, "<:encoding(utf8)", "$countryfn") || die "unable to open '$countryfn' - $!\n";
     my $line;
     my $country = {};
     my $countryhash = {};