From: Quanah Gibson-Mount Date: Mon, 24 May 2021 17:26:28 +0000 (-0400) Subject: setup.py: Explicitly open the changelog file as utf-8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3adf602f2f311c616f2b98751eb91185a89a3379;p=tools%2Fgit-buildpackage.git setup.py: Explicitly open the changelog file as utf-8 --- diff --git a/setup.py b/setup.py index 0cc31b9e..4629bbd1 100755 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ VERSION_PY_PATH = 'gbp/version.py' def _parse_changelog(): """Get version from debian changelog and write it to gbp/version.py""" - with open("debian/changelog") as f: + with open("debian/changelog", encoding="utf-8") as f: line = f.readline() # Parse version from changelog without external tooling so it can work