Skip to content

Commit

Permalink
Merge pull request #9 from ronald-jaepel/master
Browse files Browse the repository at this point in the history
Fix "'charmap' codec can't decode" error on Windows
  • Loading branch information
antipatico authored Apr 27, 2024
2 parents 4e986fd + d1e5553 commit e28fb2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion balatromobile/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="0.3.1"
__version__="0.3.2"
4 changes: 2 additions & 2 deletions balatromobile/patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def apply(self, target_file: Path):
if self.artifact is not None:
target.write_bytes(self.artifact.read_bytes())
return
patched = "\n".join([l if self.search_string not in l else self.content for l in target.read_text().splitlines()])
target.write_text(patched)
patched = "\n".join([l if self.search_string not in l else self.content for l in target.read_text(encoding="utf-8").splitlines()])
target.write_text(patched, encoding="utf-8")


class PatchFile:
Expand Down

0 comments on commit e28fb2a

Please sign in to comment.