From a46ab0d6777434769ea9de56eaf2c66228449313 Mon Sep 17 00:00:00 2001 From: openbot-coder Date: Thu, 24 Sep 2026 09:45:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20job=20=E7=BA=A7=E5=90=AF=E7=94=A8=20?= =?UTF-8?q?PYTHONUTF8=20=E4=BF=AE=20Windows=20cp1252=20=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows runner stdout 默认 cp1252,fixture 脚本 print 全角冒号 触发 UnicodeEncodeError。UTF-8 mode 统一两平台,Linux 无副作用。 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ca6e96..39f014d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,10 @@ on: jobs: test: + # Windows runner 的 stdout 默认 cp1252,Python print 中文/全角标点 + # 会 UnicodeEncodeError。UTF-8 mode 统一两平台行为(Linux 上无副作用)。 + env: + PYTHONUTF8: "1" strategy: fail-fast: false matrix: