Skip to content

Commit

Permalink
Add UTF-8 support to file_info module.
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Feb 15, 2022
1 parent 3459e8c commit 663a36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/butano/file_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def read(file_path):
read_failed = True

if os.path.isfile(file_path):
with open(file_path, 'r') as file:
with open(file_path, 'r', encoding='utf-8') as file:
info = file.read()
read_failed = False

Expand All @@ -56,7 +56,7 @@ def __init__(self, info, read_failed):
self.__read_failed = read_failed

def write(self, file_path):
with open(file_path, 'w') as file:
with open(file_path, 'w', encoding='utf-8') as file:
file.write(self.__info)

def __eq__(self, other):
Expand Down

0 comments on commit 663a36e

Please sign in to comment.