Fix CI on Windows

This commit is contained in:
KnugiHK
2026-01-24 17:38:22 +08:00
parent eab98ba0d6
commit 28ba97d72f
2 changed files with 9 additions and 0 deletions

View File

@@ -18,14 +18,20 @@ jobs:
include:
- os: windows-latest
python-version: "3.13"
env:
PYTHONUTF8: "1"
- os: macos-latest
python-version: "3.13"
- os: windows-11-arm
python-version: "3.13"
env:
PYTHONUTF8: "1"
- os: macos-15-intel
python-version: "3.13"
- os: windows-latest
python-version: "3.14"
env:
PYTHONUTF8: "1"
steps:
- name: Checkout code

View File

@@ -767,6 +767,9 @@ def main():
# Print banner if not suppressed
if not args.no_banner:
# Note: This may raise UnicodeEncodeError on Windows if the terminal
# doesn't support UTF-8 (e.g., Legacy CMD). Use a modern terminal
# or set PYTHONUTF8=1 in your environment.
print(WTSEXPORTER_BANNER)
if args.debug: