Skip to content

Commit

Permalink
Add encoding and newlines for consistent cross-platform Unicode support
Browse files Browse the repository at this point in the history
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
hugovk and CAM-Gerlach authored Nov 21, 2022
1 parent a8786b7 commit 50f3e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate-release-cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def save_csv(self) -> None:
now_str = str(dt.datetime.utcnow())

with (
open("include/branches.csv", "w", newline="") as file_branches,
open("include/end-of-life.csv", "w", newline="") as file_eol,
open("include/branches.csv", "w", encoding="UTF-8", newline="") as file_branches,
open("include/end-of-life.csv", "w", encoding="UTF-8", newline="") as file_eol,
):
csv_branches = csv.writer(file_branches, quoting=csv.QUOTE_MINIMAL)
csv_eol = csv.writer(file_eol, quoting=csv.QUOTE_MINIMAL)
Expand Down Expand Up @@ -117,7 +117,7 @@ def save_mermaid(self) -> None:
)
out.append(v)

with open("include/release-cycle.mmd", "w") as f:
with open("include/release-cycle.mmd", "w", encoding="UTF-8", newline="\n") as f:
f.writelines(out)


Expand Down

0 comments on commit 50f3e30

Please sign in to comment.