mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-04-29 11:54:48 +02: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…
x
Reference in New Issue
Block a user