Skip to content

Commit 9fade8f

Browse files
authored
fix: [autogenbench] writing to stdout encoding error in win-os (microsoft#2002)
1 parent efbb2d1 commit 9fade8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/tools/autogenbench/autogenbench/run_cmd.py

+1
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ def run_scenario_in_docker(work_dir, env, timeout=TASK_TIMEOUT, docker_image=Non
500500
chunk = chunk.decode("utf-8")
501501
log_file.write(chunk)
502502
log_file.flush()
503+
sys.stdout.reconfigure(encoding="utf-8")
503504
sys.stdout.write(chunk)
504505
sys.stdout.flush()
505506

0 commit comments

Comments
 (0)