升级本机 Trellis 至 0.6.12(upgrade-trellis-0-6-12)
这个提交包含在:
@@ -32,6 +32,14 @@ import sys
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
# Hook hosts send UTF-8 JSON regardless of the process locale.
|
||||
_stdin_reconfigure = getattr(sys.stdin, "reconfigure", None)
|
||||
if callable(_stdin_reconfigure):
|
||||
try:
|
||||
_stdin_reconfigure(encoding="utf-8", errors="replace")
|
||||
except (OSError, ValueError):
|
||||
pass
|
||||
|
||||
# IMPORTANT: Force stdout to use UTF-8 on Windows
|
||||
# This fixes UnicodeEncodeError when outputting non-ASCII characters
|
||||
if sys.platform.startswith("win"):
|
||||
|
||||
在新工单中引用
屏蔽一个用户