Skip to content

Commit 0524836

Browse files
committed
Explicitly set character encoding for locustfile downloaded from master.
1 parent 6241e9c commit 0524836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: locust/argument_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def wait_for_reply():
293293
sys.exit(1)
294294

295295
filename = msg.data["filename"]
296-
with open(os.path.join(tempfile.gettempdir(), filename), "w") as locustfile:
296+
with open(os.path.join(tempfile.gettempdir(), filename), "w", encoding="utf-8") as locustfile:
297297
locustfile.write(msg.data["contents"])
298298

299299
def exit_handler():

0 commit comments

Comments
 (0)