From e3d686cf9149d73b526e589d7d12985318805127 Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Thu, 8 Oct 2015 17:03:11 -0500
Subject: [PATCH] Use UTF-8 to read isl source

---
 setup.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index d690018..80fa724 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 """
 
+from codecs import open
+
 
 def get_config_schema():
     from aksetup_helper import (ConfigSchema,
@@ -143,7 +145,7 @@ def main():
             if "isl_ast_int.c" in fn and conf["USE_SHIPPED_IMATH"]:
                 continue
 
-            inf = open(fn, "rt")
+            inf = open(fn, "rt", codec="utf-8")
             try:
                 contents = inf.read()
             finally:
-- 
GitLab