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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user