buildorder.py: Open files with encoding=utf-8

This makes us not depend on the current environment. Fixes #665.
This commit is contained in:
Fredrik Fornwall 2017-01-09 05:26:31 -05:00
parent fee976030a
commit 4e8d7d1e42

View File

@ -40,7 +40,7 @@ class TermuxBuildFile(object):
pkg_dep_prefix = 'TERMUX_PKG_DEPENDS='
subpkg_dep_prefix = 'TERMUX_SUBPKG_DEPENDS='
with open(self.path) as f:
with open(self.path, encoding="utf-8") as f:
prefix = None
for line in f:
if line.startswith(pkg_dep_prefix):