Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v22.3.0 Cannot start if the folder is Unicode. #54991

Open
LightSpeedC opened this issue Sep 18, 2024 · 5 comments · May be fixed by #55015
Open

v22.3.0 Cannot start if the folder is Unicode. #54991

LightSpeedC opened this issue Sep 18, 2024 · 5 comments · May be fixed by #55015
Labels
windows Issues and PRs related to the Windows platform.

Comments

@LightSpeedC
Copy link

LightSpeedC commented Sep 18, 2024

Version

v22.3.0 or later (v22.9.0)

Platform

Windows 10

Microsoft Windows NT 10.0.19045.0 x64
Microsoft Windows [Version 10.0.19045.4780] <- ver

Windows 11

Microsoft Windows NT 10.0.22631.0 x64
Microsoft Windows [Version 10.0.22631.3880] <- ver

Subsystem

No response

What steps will reproduce the bug?

We can start normal.

// abcde.js
console.log('It works!');
> node C:\wk\abcde\abcde.js
It works!
> echo errorlevel=%errorlevel%
errorlevel=0
>

Cannot start if the folder is Unicode.

> node C:\wk\あいうえお\abcde.js
> echo errorlevel=%errorlevel%
errorlevel=-1073741819
> 

-1073741819 means File System error.

How often does it reproduce? Is there a required condition?

Every time. 100%

What is the expected behavior? Why is that the expected behavior?

before version v22.2.0, it's OK.

What do you see instead?

> subst A: C:\wk\あいうえお
> node A:\abcde.js
It works!
> subst A: /d

Additional information

Node.js blog - 2024-06-11, Version 22.3.0 (Current)

@LightSpeedC LightSpeedC changed the title Cannot start if the folder is Unicode. v22.3.0 Cannot start if the folder is Unicode. Sep 18, 2024
@targos targos added the windows Issues and PRs related to the Windows platform. label Sep 18, 2024
@lpinca
Copy link
Member

lpinca commented Sep 18, 2024

I can't reproduce with Node.js 22.9.0

PS C:\Users\lpinca> "$([Environment]::OSVersion.VersionString) $(('x86', 'x64')[[Environment]::Is64BitOperatingSystem])"

Microsoft Windows NT 10.0.22631.0 x64
PS C:\Users\lpinca> node -v
v22.9.0
PS C:\Users\lpinca> mkdir あいうえお


    Directory: C:\Users\lpinca


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        18/09/2024     08:46                あいうえお



PS C:\Users\lpinca> cd あいうえお
PS C:\Users\lpinca\あいうえお> node -e "require('fs').writeFileSync('index.js', 'console.log(\'It Works!\');')"
PS C:\Users\lpinca\あいうえお> node C:\Users\lpinca\あいうえお\index.js
It Works!
PS C:\Users\lpinca\あいうえお>

@LightSpeedC
Copy link
Author

LightSpeedC commented Sep 18, 2024

node v22.9.0 on Windows 10/11 can not start if folder is Unicode.
Microsoft Windows NT 10.0.22631.0 x64

Our PC, Japanese Code Page 932 is selected.

> chcp
現在のコード ページ: 932
> chcp 65001
Active code page: 65001
> chcp 932
現在のコード ページ: 932
>

@RedYetiDev
Copy link
Member

@nodejs/platform-windows

@RedYetiDev
Copy link
Member

FWIW I can't reproduce on MacOS (I know this was reported against windows):

$ echo "console.log('Tada')" > 現在のコード\ ページ/file.js
$ node 現在のコード\ ページ/file.js
Tada

@joyeecheung
Copy link
Member

This looks like another regression of #54991 (or similar changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants