From 73e09c39a4ca9754a4002227729072eab33e481e Mon Sep 17 00:00:00 2001 From: Michael Maltsev <4129781+m417z@users.noreply.github.com> Date: Sat, 21 Dec 2024 19:34:10 +0200 Subject: [PATCH] compile_mod.py: Use utf-8 for writing mod source code too --- scripts/compile_mod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compile_mod.py b/scripts/compile_mod.py index 666297a6..d8a73714 100644 --- a/scripts/compile_mod.py +++ b/scripts/compile_mod.py @@ -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 = [