Open file with encoding (Python on Windows wasn't happy)

This commit is contained in:
Odd Stråbø 2025-09-09 04:57:34 +02:00
commit 5eb33e4127

View file

@ -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: