From 36aaf601dec0ac9c772cb2da7e5feddcc109aedd Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 10 Jan 2024 23:05:01 -0600 Subject: [PATCH] Brute force open fname to utf-8 as system encoding is bonkers on py 3.5. [ski ci] --- test/BoostBuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/BoostBuild.py b/test/BoostBuild.py index a77badbbc..f8ae206be 100644 --- a/test/BoostBuild.py +++ b/test/BoostBuild.py @@ -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))