buildorder.py: Open files with encoding=utf-8
This makes us not depend on the current environment. Fixes #665.
This commit is contained in:
parent
fee976030a
commit
4e8d7d1e42
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user