From 1ddd12483995b2efb6ae1ec405a671b2b3ff6e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 17 Aug 2025 20:25:10 +0000 Subject: [PATCH 1/8] grass.gunittest: Specify encoding to files written in invoker.py --- python/grass/gunittest/invoker.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/grass/gunittest/invoker.py b/python/grass/gunittest/invoker.py index 592d39401f8..34f4907ed30 100644 --- a/python/grass/gunittest/invoker.py +++ b/python/grass/gunittest/invoker.py @@ -66,7 +66,7 @@ def update_keyval_file(filename, module, returncode): keyval["returncode"] = returncode keyval["test_file_authors"] = test_file_authors - Path(filename).write_text(keyvalue_to_text(keyval)) + Path(filename).write_text(keyvalue_to_text(keyval), encoding="utf-8") return keyval @@ -351,7 +351,8 @@ def run_in_location( " (testsuite directories)" '