CLI qm utf8 output

Jul 18, 2018
13
0
21
46
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!