From 2b9862d29073e31cc89e807fd355a691b0d932dd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 17 Apr 2023 16:40:57 +0200 Subject: Fix changelog read (explicit utf8 coding on opening) --- ishtar_common/context_processors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/context_processors.py') diff --git a/ishtar_common/context_processors.py b/ishtar_common/context_processors.py index d1e088a8f..74e38efc4 100644 --- a/ishtar_common/context_processors.py +++ b/ishtar_common/context_processors.py @@ -53,7 +53,7 @@ def _get_changelog_version_from_file(): return "no-version" changelog_file = os.path.join(changelog_dir, filename) current_version = None - with open(changelog_file, "r") as changelog: + with open(changelog_file, "r", encoding="utf-8") as changelog: for line in changelog.readlines(): m = re.match(r"v(\d+)\.(\d+)\.(\d+)", line) if not m: -- cgit v1.2.3