CLI qm utf8 output

Jul 18, 2018
13
0
21
47
I have problem for example getting IP from qm command like this:

qm agent 115 network-get-interfaces

When its localized Windows machine, in my case CZ, the name of the interface contains utf8 national chars (poor Windows), but perl prints warning:
Wide character in print at /usr/share/perl5/PVE/CLI/qm.pm line 860.

it can be eliminated with adding utf8 support to perl in /sbin/qm changing first line to:
#!/usr/bin/perl -CS

Is it proper fix?

Jan
 
Now I see it's not proper, because when I launch VNC console I get this error:

syswrite() isn't allowed on :utf8 handles at /usr/share/perl5/PVE/CLI/qm.pm line 86.
TASK ERROR: Failed to run vncproxy.
 
mhmm.. would you mind opening a bug report on https://bugzilla.proxmox.com ?
not sure if we can fix this for all (since we actually cannot know what encoding the guest agent uses) but we can look into it