Skip to content

fix(windows): bootstrap UTF-8 before running gateway task script#520

Open
BingqingLyu wants to merge 1 commit intomainfrom
fork-pr-43975-fix-issue-43943
Open

fix(windows): bootstrap UTF-8 before running gateway task script#520
BingqingLyu wants to merge 1 commit intomainfrom
fork-pr-43975-fix-issue-43943

Conversation

@BingqingLyu
Copy link
Copy Markdown
Owner

@BingqingLyu BingqingLyu commented Apr 27, 2026

Summary

  • prepend chcp 65001>nul to generated Windows gateway task scripts so cmd.exe reads non-ASCII paths correctly
  • teach scheduled-task command parsing to ignore the UTF-8 bootstrap line
  • add regression coverage for Chinese-path task scripts

Testing

  • pnpm exec vitest run --config vitest.unit.config.ts src/daemon/schtasks.install.test.ts src/daemon/schtasks.test.ts src/daemon/cmd-argv.test.ts
  • pnpm exec oxfmt --check src/daemon/schtasks.ts src/daemon/schtasks.install.test.ts src/daemon/schtasks.test.ts

Closes openclaw#43943

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: [Windows] Gateway fails to start with Chinese username path

1 participant