Browse Source

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

This makes us not depend on the current environment. Fixes #665.
android-5
Fredrik Fornwall 8 years ago
parent
commit
4e8d7d1e42
  1. 2
      scripts/buildorder.py

2
scripts/buildorder.py

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

Loading…
Cancel
Save