[pve-devel] [PATCH manager 2/3] adding a utf8 parameter to run_spiceterm

Dominik Csapak d.csapak at proxmox.com
Tue Feb 28 12:06:40 CET 2017


this will be used by containers which have the unicodeconsole config set

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2Tools.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/PVE/API2Tools.pm b/PVE/API2Tools.pm
index dfe368b..3bf8d57 100644
--- a/PVE/API2Tools.pm
+++ b/PVE/API2Tools.pm
@@ -138,7 +138,7 @@ sub parse_http_proxy {
 }
 
 sub run_spiceterm {
-    my ($authpath, $permissions, $vmid, $node, $proxy, $title, $shcmd) = @_;
+    my ($authpath, $permissions, $vmid, $node, $proxy, $title, $shcmd, $utf8) = @_;
 
     my $rpcenv = PVE::RPCEnvironment::get();
 
@@ -160,6 +160,8 @@ sub run_spiceterm {
     my $dcconf = PVE::Cluster::cfs_read_file('datacenter.cfg');
     push @$cmd, '--keymap', $dcconf->{keyboard} if $dcconf->{keyboard};
 
+    push @$cmd, '--utf8' if $utf8;
+
     push @$cmd, '--', @$shcmd;
 
     my $realcmd = sub {
-- 
2.1.4





More information about the pve-devel mailing list