Fix: Ensure UTF-8 encoding for all file operations

This commit is contained in:
chtangwin committed 2026-02-18 18:28:54 -08:00
1 parent 8de36d398f
commit c7b5dd9350
5 files changed
+13 -11

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ def load_config(config_path: Path | None = None) -> Config:
if path.exists():
try:
with open(path) as f:
with open(path, encoding="utf-8") as f:
data = json.load(f)
data = _migrate_config(data)
return Config.model_validate(data)