Skip to content

Commit

Permalink
compile_mod.py: Use utf-8 for writing mod source code too
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Dec 21, 2024
1 parent a166af7 commit 73e09c3
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 @@ -378,7 +378,7 @@ def compile_mod(
with tempfile.NamedTemporaryFile(delete=False, suffix='.wh.cpp') as tmp:
mod_file_temp = Path(tmp.name)

mod_file_temp.write_text(mod_code)
mod_file_temp.write_text(mod_code, encoding='utf-8')
mod_file_for_compilation = mod_file_temp

compiler_args = [
Expand Down

0 comments on commit 73e09c3

Please sign in to comment.