[pve-devel] applied: [PATCH installer] fix #2313: load country.dat file with utf8 encoding

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Aug 12 18:01:42 CEST 2019


Am 8/9/19 um 12:47 PM schrieb Dominik Csapak:
> 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 at proxmox.com>
> ---
>  proxinstall | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/proxinstall b/proxinstall
> index 963152a..d9e2211 100755
> --- a/proxinstall
> +++ b/proxinstall
> @@ -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 = {};
> 

applied, thanks!




More information about the pve-devel mailing list