Skip to content

Commit a814ba5

Browse files
authored
fix: [autogenbench] windows fails unless we specify encoding (#1957)
1 parent 99df2c5 commit a814ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/tools/autogenbench/autogenbench/run_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def run_scenario_in_docker(work_dir, env, timeout=TASK_TIMEOUT, docker_image=Non
492492
docker_timeout = timeout + 60 # One full minute after the bash timeout command should have already triggered
493493
start_time = time.time()
494494
logs = container.logs(stream=True)
495-
log_file = open(os.path.join(work_dir, "console_log.txt"), "wt")
495+
log_file = open(os.path.join(work_dir, "console_log.txt"), "wt", encoding="utf-8")
496496
stopping = False
497497

498498
for chunk in logs: # When streaming it should return a generator

0 commit comments

Comments
 (0)