Add missing utf-8 encoding to cache write

Fixes #202
This commit is contained in:
DominikDoom
2023-07-22 18:17:30 +02:00
parent 599ff8a6f2
commit 94823b871c

View File

@@ -24,7 +24,7 @@ def load_hash_cache():
def update_hash_cache():
global file_needs_update
if file_needs_update:
with open(known_hashes_file, "w") as file:
with open(known_hashes_file, "w", encoding="utf-8") as file:
for name, (hash, mtime) in hash_dict.items():
file.write(f"{name},{hash},{mtime}\n")