Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ def bootstrap(args):
# Give a hard error if `--config` or `RUST_BOOTSTRAP_CONFIG` are set to a missing path,
# but not if `bootstrap.toml` hasn't been created.
if not using_default_path or os.path.exists(toml_path):
with open(toml_path) as config:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: we should go through bootstrap.py and make sure we specific explicit open() encodings, as far as I am aware there is a reasonable desire to want to make a future change in Python 3.* where open() defaults to UTF-8 encoding, which could break open() on binary files called elsewhere in this script.

with open(toml_path, encoding="utf-8") as config:
config_toml = config.read()
else:
config_toml = ""
Expand Down
Loading