mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-19 12:32:40 +01:00
Use encoding in open
Python's open is locale dependent, LC_ALL=C may open it in ascii mode and fail
This commit is contained in:
parent
9a779f2a94
commit
13f208165c
@ -73,7 +73,7 @@ def main():
|
||||
TEXT[org] = text
|
||||
HTML[org] = html
|
||||
|
||||
grep = open(org, "r").read()
|
||||
grep = open(org, "r", encoding="utf-8").read()
|
||||
|
||||
if "(eval c)" in grep:
|
||||
C_FILES += [c]
|
||||
|
Loading…
Reference in New Issue
Block a user