get_cnf always returns latin1-encoded output, but wrapper decoded shell-output
with system-default-encoding (usually utf8). Fix that
cnf_index, cnf_key, platform_str, regex)
cmd = "get_cnf%s %s%s" % (" -c " if compact else "", cnf_key,
" %s" % cnf_index if cnf_index != -1 else "")
- output = run_cmd(cmd=cmd, vm=vm).stdout.decode()
+ # get_cnf creates latin1-encoded output, transfer from VM removes non-ascii
+ output = run_cmd(cmd=cmd, vm=vm).stdout.decode('latin1')
return re.search(regex, output, flags=re.DOTALL)