From 5eb33e41272c078a3e2a7e34978fc80b71bbe551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Odd=20Str=C3=A5b=C3=B8?= Date: Tue, 9 Sep 2025 04:57:34 +0200 Subject: [PATCH] Open file with encoding (Python on Windows wasn't happy) --- tests/test_translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_translations.py b/tests/test_translations.py index 0c4d759c..ba4437eb 100644 --- a/tests/test_translations.py +++ b/tests/test_translations.py @@ -128,7 +128,7 @@ def test_langcode_country(dir: str): def parse_language_headers(file): - with open(file, "rt") as fh: + with open(file, "rt", encoding="utf-8") as fh: sections = {} section = None for line in fh: