mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
Specify UTF-8 encoding in python build scripts
This commit is contained in:
parent
e770f37f52
commit
e1a9154555
2 changed files with 6 additions and 4 deletions
|
@ -6,6 +6,7 @@
|
|||
#
|
||||
# Author: Leonardo de Moura (leonardo)
|
||||
############################################
|
||||
import io
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
|
@ -806,7 +807,7 @@ def extract_c_includes(fname):
|
|||
# We should generate and error for any occurrence of #include that does not match the previous pattern.
|
||||
non_std_inc_pat = re.compile(".*#include.*")
|
||||
|
||||
f = open(fname, 'r')
|
||||
f = io.open(fname, encoding='utf-8', mode='r')
|
||||
linenum = 1
|
||||
for line in f:
|
||||
m1 = std_inc_pat.match(line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue