We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d15f7 commit a5e6fecCopy full SHA for a5e6fec
1 file changed
python/private/stage2_bootstrap_template.py
@@ -71,8 +71,9 @@ def get_build_data(self):
71
path = os.path.normpath(path)
72
try:
73
# Use utf-8-sig to handle Windows BOM
74
- with open(path, encoding="utf-8-sig") as fp:
75
- return fp.read()
+ with open(path, 'rb') as fp:
+ data = fp.read()
76
+ return data.decode('utf-8-sig')
77
except Exception as exc:
78
if hasattr(exc, "add_note"):
79
exc.add_note(f"runfiles lookup path: {rlocation_path}")
0 commit comments