Skip to content

Commit

Permalink
Merge pull request #2180 from archanyhm/make_changelog_utf8_aware
Browse files Browse the repository at this point in the history
fix: ensure that the changelog is read as UTF-8
  • Loading branch information
Thlumyn authored Apr 3, 2024
2 parents f61924e + 2e58f35 commit c283572
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<strong>TBD</strong>
- Fix: ensure that the changelog is read as UTF-8

<strong>v0.11.1</strong>
- Fix: The changelog. Yep, just the changelog. Yes, it happened again-

Expand Down
4 changes: 2 additions & 2 deletions scripts/game_structure/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def __init__(self, last_screen):
["git", "log", r"--pretty=format:%H|||%cd|||%b|||%s", "-15", "--no-decorate", "--merges", "--grep=Merge pull request", "--date=short"]).decode("utf-8")
dynamic_changelog = True
else:
with open("changelog.txt", "r") as read_file:
with open("changelog.txt", "r", encoding='utf-8') as read_file:
file_cont = read_file.read()

if get_version_info().is_dev() and not get_version_info().is_source_build:
Expand Down Expand Up @@ -1414,4 +1414,4 @@ def process_event(self, event):
self.the_cat.no_mates = not self.the_cat.no_mates
self.refresh_checkboxes()

return super().process_event(event)
return super().process_event(event)

0 comments on commit c283572

Please sign in to comment.