[pve-devel] [PATCH common] tools: file_set_contents: use syswrite instead of print

Filip Schauer f.schauer at proxmox.com
Mon Sep 30 13:38:46 CEST 2024


Superseded by:
https://lists.proxmox.com/pipermail/pve-devel/2024-September/065476.html

On 25/09/2024 16:37, Dominik Csapak wrote:
>
> hi,
>
> as we already talked off list, this may be an issue when we do have a 
> string
> that is marked as utf8 (e.g. api parameters that contain codepoints > 
> 127)
>
> if such a parameter reach the syswrite it will fail, so we should 
> probably
> use is_utf8 (or something better?) to detect if a string is utf8 and 
> encode
> it before passing it to syswrite.
>




More information about the pve-devel mailing list