Private
Public Access
1
0

fix: 恢复 UTF-8 BOM 修复中文 Windows 下 PowerShell 5.x 解析错误

PowerShell 5.x 无 BOM 时使用系统默认编码(GBK)解析 .ps1 文件,
导致 UTF-8 中文字符被错误解析、行被合并,触发 MissingCatchOrFinally 错误。
恢复之前被误删的 UTF-8 BOM (EF BB BF) 以确保正确编码识别。
This commit is contained in:
2026-03-20 22:56:08 +08:00
parent 8032830906
commit 783d1fe8d8
5 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
# Gemini CLI Configuration Script for XCodeCLI (Windows)
# Gemini CLI Configuration Script for XCodeCLI (Windows)
# This script configures Gemini CLI to use your XCodeCLI instance
# Automatically tests multiple API endpoints and selects the working one
# Run with: powershell -ExecutionPolicy Bypass -File setup-gemini.ps1 -ApiKey YOUR_KEY