Version
v22.5.0
Platform
Microsoft Windows NT 10.0.19045.0 x64
Microsoft Windows NT 10.0.22631.0 x64
Subsystem
No response
What steps will reproduce the bug?
- Run a cmd.exe.
- Run command
mkdir "D:\2024年11月"
- Run command
echo console.log(123);>"D:\2024年11月\test.js"
- Run command
node "D:\2024年11月\test.js"
How often does it reproduce? Is there a required condition?
It always happend as long as the path of script file is certain.
What is the expected behavior? Why is that the expected behavior?
The script file was completely launched and executed, print 123 in stdout or some other error in stderr.
What do you see instead?
No any response from node.exe, can not figure out what happened, and you will got a read ECONNRESET error if you run command to inspect like node inspect "D:\2024年11月\test.js"
Additional information
- This issue does not occur when I run a node.exe in v22.1.0, but does in almost all the versions after v22.5.0, include v22.11.0, v23.1.0. I have test it with several times of re-installations for node.exe in these versions.
- The issue is not related to the current page (CHCP/character set) of cmd.exe, neither the character set of script file.
- As shown in theses images, all the things happened just in one session of cmd, the only difference is the version of node.exe.


Version
v22.5.0
Platform
Subsystem
No response
What steps will reproduce the bug?
mkdir "D:\2024年11月"echo console.log(123);>"D:\2024年11月\test.js"node "D:\2024年11月\test.js"How often does it reproduce? Is there a required condition?
It always happend as long as the path of script file is certain.
What is the expected behavior? Why is that the expected behavior?
The script file was completely launched and executed, print
123in stdout or some other error in stderr.What do you see instead?
No any response from node.exe, can not figure out what happened, and you will got a
read ECONNRESETerror if you run command to inspect likenode inspect "D:\2024年11月\test.js"Additional information