mirror of
https://github.com/TheR1D/shell_gpt.git
synced 2026-07-03 14:10:18 +02:00
Enforce UTF-8 cache writes (#737)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user