Skip to content

Commit bb8b7fe

Browse files
committed
qemu: Specify console.log encoding
1 parent 16179f4 commit bb8b7fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/qemu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ def qemu_main(qconf):
532532
boot_timeout = pexpect_timeout = None
533533

534534
p = PexpectHelper()
535-
p.spawn(cmd, logfile=open(qconf.logpath, 'w'), timeout=pexpect_timeout, quiet=qconf.quiet)
535+
logfile = open(qconf.logpath, 'w', encoding='utf-8', errors='ignore')
536+
p.spawn(cmd, logfile=logfile, timeout=pexpect_timeout, quiet=qconf.quiet)
536537

537538
p.push_prompt(qconf.prompt)
538539
qconf.boot_func(p, boot_timeout, qconf)

0 commit comments

Comments
 (0)