You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bash.ts: hardcoded UTF-8 decoding produces garbled output on non-UTF-8 systems #30869
On Windows with CJK locales (e.g., Chinese GBK encoding chcp 936), compiler error messages are UTF-8 decoded from GBK bytes, producing mojibake (garbled characters). AI sees unreadable text → cannot diagnose build failures.
Same issue here on Chinese Windows (code page 936/GBK). The bash tool hardcodes result.stdout.toString("utf8") at line 173 in bash.ts, but Windows system commands output in the system's active code page (GBK on zh-CN). The simple fix would be to detect the system encoding on Windows via chcp.com and use the appropriate decoder.
Activity
github-actions commentedon Jun 5, 2026
This issue might be a duplicate of existing issues. Please check:
Please review those issues and, if your issue is distinct, clarify how it differs.
skywalker-35 commentedon Jun 16, 2026
Same issue here on Chinese Windows (code page 936/GBK). The
bashtool hardcodesresult.stdout.toString("utf8")at line 173 inbash.ts, but Windows system commands output in the system's active code page (GBK on zh-CN). The simple fix would be to detect the system encoding on Windows viachcp.comand use the appropriate decoder.Related issues: #31187, #26882, #31830, #31765
Many Chinese/Japanese/Korean Windows users are affected by this. Please consider fixing it in an upcoming release. Thanks!