Enforce UTF-8 cache writes (#737)

This commit is contained in:
繁星_逐梦
2026-04-11 13:39:43 +08:00
committed by GitHub
parent 4ea2f834cf
commit 29b77522ca
+1 -1
View File
@@ -38,7 +38,7 @@ class Cache:
result += i
yield i
if "@FunctionCall" not in result:
file.write_text(result)
file.write_text(result, encoding="utf-8")
self._delete_oldest_files(self.length) # type: ignore
return wrapper