From: Fredrik Fornwall Date: Mon, 9 Jan 2017 10:26:31 +0000 (-0500) Subject: buildorder.py: Open files with encoding=utf-8 X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/4e8d7d1e42625d967642dd65219c72f9df9ee7b8 buildorder.py: Open files with encoding=utf-8 This makes us not depend on the current environment. Fixes #665. --- diff --git a/scripts/buildorder.py b/scripts/buildorder.py index 67f53074..fd7b2a64 100755 --- a/scripts/buildorder.py +++ b/scripts/buildorder.py @@ -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):