From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 363A71FF0AD for ; Sun, 04 Oct 2026 16:32:29 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id BC289216BE; Sun, 04 Oct 2026 16:32:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dualfroz.com; s=dkim; t=1791124324; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=gMaL5uYgunHo5aDJ4RKjprRAfbWvrNxSG/UA2pSuCo4=; b=xCplJ7dvfW9NrmaFAhm5h+bn99J8nZVxuOYqZIih5RfFjBn0JkenrMirdD/QNOAFiVzCKf /KoNmcRWuJNd76EUTVE+ZtxfPEey7ifuiGm2kpDwVGIawDzsH5+geZHxqdh/p1e+yUJ3Lc w0qnNY9vAidBJV3t2tZTSzePI9+bTh2MZvF71ttbGdCcv5/G2sc3nbgLxjLUDQRvXXUX8b hDCyb+x8j2v+IgKVyWdXMGdMZYMpahvCZFFJjOSnsyQ2lEbcJGZaNE6k0w4+GVgPpcv4SO fJOMLQnIn882atUJNKmBHz7hSHPQWEmA4JmXBkJvnwhqXLG2dwTIOjjDgaJHmw== From: Michal Fox To: pve-devel@lists.proxmox.com Subject: [PATCH common 0/2] cli formatter: fix double UTF-8 encoding of YAML Date: Sun, 4 Oct 2026 14:32:00 +0000 Message-ID: <20261004143202.7-1-me@dualfroz.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.192 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: VDRDZC7MV4CDWFVRDQOPDVIEGXFMAAVJ X-Message-ID-Hash: VDRDZC7MV4CDWFVRDQOPDVIEGXFMAAVJ X-MailFrom: me@dualfroz.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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