qwen-code/packages/cli/src
tanzhenxin 17939baa66 feat(core): auto-detect UTF-8 BOM for PowerShell scripts on Windows
- 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>
2026-03-16 22:44:53 +08:00
..
acp-integration Merge pull request #2374 from QwenLM/fix/vscode-session-race-conditions 2026-03-16 09:51:20 +08:00
commands fix: improve qwen mcp add option handling for arrays 2026-03-10 17:37:51 +08:00
config feat(core): auto-detect UTF-8 BOM for PowerShell scripts on Windows 2026-03-16 22:44:53 +08:00
constants feat(shell): enable PTY by default and various enhancements 2026-03-05 11:28:13 +08:00
core Merge pull request #1637 from QwenLM/fix/output-language-init-timing 2026-01-29 11:14:07 +08:00
i18n Merge pull request #2333 from chen893/fix/slash-command-i18n 2026-03-15 20:12:15 +08:00
nonInteractive feat: add --session-id support for CLI and SDK 2026-02-13 21:40:57 +08:00
patches adh/bugfix/1563 (#4822) 2025-07-25 16:39:37 +00:00
services fix(insight): handle individual LLM failures in qualitative insights (#2341) (#2361) 2026-03-14 15:39:46 +08:00
test-utils Merge branch 'main' into feat/extension 2026-01-14 17:56:01 +08:00
ui Merge pull request #2388 from QwenLM/fix/remove-enableToolOutputTruncation-setting 2026-03-16 09:51:37 +08:00
utils Merge pull request #2391 from kkhomej33-netizen/fix/macos-pty-sandbox-rules 2026-03-15 22:33:40 +08:00
gemini.test.tsx Merge branch 'main' into feat/sandbox-config-improvements 2026-03-06 14:38:39 +08:00
gemini.tsx fix(cli): ignore stream-json input format in TTY mode to prevent hanging 2026-03-02 21:23:59 +08:00
nonInteractiveCli.test.ts fix(core): strip orphaned user entries before retry to prevent API errors 2026-03-14 12:51:34 +08:00
nonInteractiveCli.ts fix(core): strip orphaned user entries before retry to prevent API errors 2026-03-14 12:51:34 +08:00
nonInteractiveCliCommands.test.ts fix: explicit output if command is not supported 2025-12-26 17:55:03 +08:00
nonInteractiveCliCommands.ts feat(skills): add bundled /review skill for out-of-the-box code review (#2348) 2026-03-14 15:15:08 +08:00
validateNonInterActiveAuth.test.ts refactor(debug): replace ConsolePatcher with debugLogger and update error reporting 2026-02-02 17:37:54 +08:00
validateNonInterActiveAuth.ts Merge branch 'main' into feat/debug-logging-refactor 2026-02-01 20:47:38 +08:00