public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH common 0/2] cli formatter: fix double UTF-8 encoding of YAML
@ 2026-10-04 14:32 Michal Fox
  2026-10-04 14:32 ` [PATCH common 1/2] fix #6305: cli formatter: avoid encoding YAML output twice Michal Fox
  2026-10-04 14:32 ` [PATCH common 2/2] cli formatter: decode the output of the yaml renderer Michal Fox
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Fox @ 2026-10-04 14:32 UTC (permalink / raw)
  To: pve-devel

both the 'yaml' output format and the 'yaml' renderer of the text output
still handled the output of YAML::XS::Dump as a character string, which
was right for CPAN::Meta::YAML used before 99d0252, so any non-ASCII
character got encoded twice.

1/2 fixes the 'yaml' output format from #6305, as the reporter suggested
in the bug. 2/2 does the same for the renderer, which is used for
example for the ACME account details.

tested with 'make check' in src and test, each patch on its own.

Michal Fox (2):
  fix #6305: cli formatter: avoid encoding YAML output twice
  cli formatter: decode the output of the yaml renderer

 src/PVE/CLIFormatter.pm |  6 ++++--
 test/format_test.pl     | 16 ++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

-- 
2.43.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-04 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-04 14:32 [PATCH common 0/2] cli formatter: fix double UTF-8 encoding of YAML Michal Fox
2026-10-04 14:32 ` [PATCH common 1/2] fix #6305: cli formatter: avoid encoding YAML output twice Michal Fox
2026-10-04 14:32 ` [PATCH common 2/2] cli formatter: decode the output of the yaml renderer Michal Fox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal