[pve-devel] [PATCH manager 3/5] make language js files consistent
Dietmar Maurer
dietmar at proxmox.com
Fri Jun 9 10:00:13 CEST 2017
> diff --git a/po/po2js.pl b/po/po2js.pl
> index 6941f5c0..76a84695 100755
> --- a/po/po2js.pl
> +++ b/po/po2js.pl
> @@ -67,7 +67,8 @@ foreach my $k (keys %$href) {
> #use Data::Dumper;
> #print STDERR Dumper(encode_json({test => decode('UTF-8', "müssen")}));
>
> -my $json = encode_json($catalog);
> +my $jsono = JSON->new->canonical(1);
> +my $json = $jsono->encode($catalog);
>
I would prefer:
my $json = to_json($catalog, {canonical => 1});
More information about the pve-devel
mailing list