mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
Specify encoding of source files in mk_util.py
This commit is contained in:
parent
2abc759d0e
commit
c279fd9f2e
|
@ -780,7 +780,7 @@ def extract_c_includes(fname):
|
||||||
# We should generate and error for any occurrence of #include that does not match the previous pattern.
|
# We should generate and error for any occurrence of #include that does not match the previous pattern.
|
||||||
non_std_inc_pat = re.compile(".*#include.*")
|
non_std_inc_pat = re.compile(".*#include.*")
|
||||||
|
|
||||||
f = open(fname, 'r')
|
f = open(fname, encoding='utf-8', mode='r')
|
||||||
linenum = 1
|
linenum = 1
|
||||||
for line in f:
|
for line in f:
|
||||||
m1 = std_inc_pat.match(line)
|
m1 = std_inc_pat.match(line)
|
||||||
|
|
Loading…
Reference in a new issue