Skip to content

Support non-ASCII (CJK) paths in Windows installer#7342

Merged
mohanchen merged 1 commit into
deepmodeling:developfrom
Critsium-xy:windows_installer_cjk_path
May 14, 2026
Merged

Support non-ASCII (CJK) paths in Windows installer#7342
mohanchen merged 1 commit into
deepmodeling:developfrom
Critsium-xy:windows_installer_cjk_path

Conversation

@Critsium-xy
Copy link
Copy Markdown
Collaborator

Force UTF-8 at the top of install-abacus.bat, uninstall-abacus.bat, and the generated abacus.cmd / abacus-mpi.cmd launchers via chcp 65001 and set WSL_UTF8=1. Without these, wsl.exe emits UTF-16LE when its stdout is piped, so the for /f that captures wslpath output mangles any CJK characters in the repository or case directory path, and the launchers' wsl --cd "%CD%" fails from a Chinese-named directory.

Force UTF-8 at the top of install-abacus.bat, uninstall-abacus.bat, and
the generated abacus.cmd / abacus-mpi.cmd launchers via `chcp 65001` and
`set WSL_UTF8=1`. Without these, wsl.exe emits UTF-16LE when its stdout
is piped, so the `for /f` that captures `wslpath` output mangles any
CJK characters in the repository or case directory path, and the
launchers' `wsl --cd "%CD%"` fails from a Chinese-named directory.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mohanchen mohanchen added Refactor Refactor ABACUS codes Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS labels May 14, 2026
@mohanchen mohanchen merged commit 9ff7599 into deepmodeling:develop May 14, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants