fix: pin fetch_meta.py output to utf-8 encoding (#1516)

This commit is contained in:
liangshuo-1
2026-06-18 17:18:45 +08:00
committed by GitHub
parent 96d70143c5
commit 4f3ae0c71a

View File

@@ -89,7 +89,7 @@ def main():
count = len(data.get("services", []))
print(f"fetch-meta: OK, {count} services from remote API", file=sys.stderr)
with open(OUT_PATH, "w") as fp:
with open(OUT_PATH, "w", encoding="utf-8", newline="\n") as fp:
json.dump(data, fp, ensure_ascii=False, indent=2)
fp.write("\n")