fix(wechat): Windows 系统上 doctor 误判微信公众号渠道不可用 (#263)

fix(wechat): Windows GBK encoding causes false negative in doctor check
This commit is contained in:
Pgooone
2026-04-13 17:16:05 +08:00
committed by GitHub
parent def2ce932e
commit a45147c53d
+1 -1
View File
@@ -17,7 +17,7 @@ def _exa_available() -> bool:
try:
r = subprocess.run(
[mcporter, "config", "list"],
capture_output=True, text=True, timeout=5,
capture_output=True, encoding="utf-8", errors="replace", timeout=5,
)
return "exa" in r.stdout.lower()
except Exception: