1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-11-19 04:22:46 +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:
Harmen Stoppels 2023-02-14 11:18:51 +01:00 committed by GitHub
parent 9a779f2a94
commit 13f208165c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]