Codepage 850 works, 65001 fails! There is NO response to “call foo.cmd”. internal commands work fine

后端 未结 2 1205
一向
一向 2021-01-19 08:14

The question basically explains the problem.

I\'m using Windows XP Pro Service Pack 3
ComSpec=C:\\WINDOWS\\system32\\cmd.exe
I launched the console via Star

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 08:31

    The cause of this is when cmd.exe for windows xp internally call to the function MultiByteToWideChar using the argument dwFlags with the value 1. The documentation says this: "For UTF-8 dwFlags must be set to 0. Otherwise, the function fails".

    A patch for it here: http://consolesoft.com/p/cmd-xp-65001-fix/index.html

提交回复
热议问题