[pve-devel] [PATCH common] tools: file_set_contents: use syswrite instead of print
Dominik Csapak
d.csapak at proxmox.com
Wed Sep 25 16:37:47 CEST 2024
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