Skip to content

Commit 833a2fa

Browse files
author
a.pirogov
committed
fix: set encoding for cookiecutter.json file to utf-8 for cross-platform consistency
1 parent 0e21eaa commit 833a2fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fair_python_cookiecutter/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def copy_template(
6464
shutil.copyfile(path, trg_path)
6565

6666
# write a fresh cookiecutter.json based on user configuration
67-
with open(tmp_dir / "cookiecutter.json", "w") as f:
67+
with open(tmp_dir / "cookiecutter.json", "w", encoding="utf-8") as f:
6868
f.write(cookiecutter_json.model_dump_json(indent=2, by_alias=True))
6969

7070
if not template_root:

0 commit comments

Comments
 (0)