Skip to content

Commit

Permalink
Brute force open fname to utf-8 as system encoding is bonkers on py 3.5.
Browse files Browse the repository at this point in the history
[ski ci]
  • Loading branch information
grafikrobot committed Jan 11, 2024
1 parent 7514810 commit 36aaf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/BoostBuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def write(self, file, content, wait=True):
if not type(content) == bytes:
content = content.encode()
try:
with open(nfile.encode(sys.getfilesystemencoding()), "wb") as f:
with open(nfile.encode('utf-8'), "wb") as f:
f.write(content)
except Exception as e:
annotation("failure","Could not create file '{}': {}".format(nfile, e))
Expand Down

0 comments on commit 36aaf60

Please sign in to comment.