dccc97a0eafa24dc2d80dfb9185e68a9bce5c2b6
YAML::XS::Dump returns UTF-8 encoded octets, but the value returned by
a renderer gets encoded when the text output is printed, like any other
value. So for properties using the 'yaml' renderer, for example the
account details shown by 'pvenode acme account info', any non-ASCII
character got encoded twice and ended up mangled.
Decode the output of YAML::XS::Dump in the renderer, so it returns a
character string like all other renderers, and add a test for it.
Fixes: 99d0252 ("properly encode YAML via YAML::XS")
Signed-off-by: Michal Fox <me@dualfroz.com>
Description
My contributions to proxmox-git/pve-common: 6 commits
100 KiB
0 Stars
1 Watchers
0 Forks
Languages
Perl
100%