From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 206158274 for ; Wed, 30 Aug 2023 14:38:04 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0087334879 for ; Wed, 30 Aug 2023 14:38:04 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 30 Aug 2023 14:38:01 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 96856477B2 for ; Wed, 30 Aug 2023 14:38:01 +0200 (CEST) From: Lukas Wagner To: pve-devel@lists.proxmox.com Date: Wed, 30 Aug 2023 14:37:51 +0200 Message-Id: <20230830123754.606260-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.037 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com, cluster.pm, notify.pm, tools.pm] Subject: [pve-devel] [PATCH common/cluster 0/3] fix #4937: fix utf8 encoding issues while saving notification config X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2023 12:38:04 -0000 These patches should fix issues with certain special characters (e.g ü) in the notification configuration [1]. Before, when setting a comment for an endpoint to certain values (e.g. 'für admins'), the resulting saved configuration would contain invalid UTF8 text. The reason for that was the configuration was returned from Rust as a proper utf8 string, however it was saved to the file system without specifying an encoding. [1] https://bugzilla.proxmox.com/show_bug.cgi?id=4937 pve-common: Lukas Wagner (1): tools: allow to specify file encoding for file_set_contents src/PVE/Tools.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) pve-cluster: Lukas Wagner (2): cluster fs: allow to specify file encoding for cfs_write_file fix #4937: notify: write configuration files in utf8 encoding src/PVE/Cluster.pm | 4 ++-- src/PVE/Notify.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) Summary over all repositories: 3 files changed, 10 insertions(+), 5 deletions(-) -- murpp v0.4.0