Skip to content

Commit 793af99

Browse files
committed
chore: update encoding to utf-8 when creating schema file
1 parent 0cf1edc commit 793af99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fortls/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def create_schema(root: pathlib.Path | None = None):
2828
m = create_model("fortls schema", **only_vals)
2929
m.__doc__ = "Schema for the fortls Fortran Language Server"
3030

31-
with open(str(root / "fortls.schema.json"), "w") as f:
31+
with open(str(root / "fortls.schema.json"), "w", encoding="utf-8") as f:
3232
print(m.schema_json(indent=2), file=f)
3333
print(f"Created schema file: {root / 'fortls.schema.json'}")
3434

0 commit comments

Comments
 (0)