2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 04:02:14 +00:00

Brute force open fname to utf-8 as system encoding is bonkers on py 3.5.

[ski ci]
This commit is contained in:
Rene Rivera
2024-01-10 23:05:01 -06:00
parent 7514810365
commit 36aaf601de

View File

@@ -390,7 +390,7 @@ class Tester(TestCmd.TestCmd):
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))