Skip to content

Commit

Permalink
compile_mod.py: Use utf-8 for mod source code
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Dec 21, 2024
1 parent cd2058e commit 3bd424b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/compile_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def compile_mod(
compatibility_patches = mod_compatibility.get('patches')
if compatibility_patches:
print(f'Using compatibility patches: {compatibility_patches}')
mod_code = mod_file.read_text()
mod_code = mod_file.read_text(encoding='utf-8')
for search, replace in compatibility_patches:
mod_code = re.sub(search, replace, mod_code, flags=re.MULTILINE)

Expand Down

0 comments on commit 3bd424b

Please sign in to comment.