mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
- Add needsUtf8Bom() to detect when UTF-8 BOM is needed based on file extension and system code page - PowerShell 5.1 on non-UTF-8 Windows systems (e.g. GBK) requires BOM to read scripts correctly - Remove default UTF8 encoding; undefined now triggers auto-detection - Add tests for needsUtf8Bom() covering Windows/non-Windows scenarios This ensures PowerShell scripts are written with UTF-8 BOM on systems that need it, fixing character encoding issues for non-ASCII content. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> |
||
|---|---|---|
| .. | ||
| src | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||