Skip to content

Commit

Permalink
fix: [autogenbench] writing to stdout encoding error in win-os (#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalo authored Mar 14, 2024
1 parent 77513f0 commit 6dbae0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/tools/autogenbench/autogenbench/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ def run_scenario_in_docker(work_dir, env, timeout=TASK_TIMEOUT, docker_image=Non
chunk = chunk.decode("utf-8")
log_file.write(chunk)
log_file.flush()
sys.stdout.reconfigure(encoding="utf-8")
sys.stdout.write(chunk)
sys.stdout.flush()

Expand Down

0 comments on commit 6dbae0a

Please sign in to comment.