Skip to content

Commit

Permalink
Merge pull request blaylockbk#230 from IncubatorShokuhou/main
Browse files Browse the repository at this point in the history
Fix the UnicodeDecodeError: 'utf-8' error that occurred when Windows usernames contained UTF-8 characters.
  • Loading branch information
blaylockbk authored Sep 27, 2023
2 parents 6f40ec6 + ea1ed17 commit 4fe7312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion herbie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def template(self):

# Create config.toml file
_config_path.parent.mkdir(parents=True, exist_ok=True)
with open(_config_path, "w") as f:
with open(_config_path, "w", encoding="utf-8") as f:
toml_string = toml.dump(toml.loads(default_toml), f)

# Create custom_template.py placeholder
Expand Down

0 comments on commit 4fe7312

Please sign in to comment.