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
AlttiRi opened this issue
Oct 1, 2023
· 2 comments
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.fsIssues and PRs related to the fs subsystem / file system.windowsIssues and PRs related to the Windows platform.
importfsfrom"node:fs/promises";constfilename="file - テキスト - 🟦.txt";awaitfs.writeFile(filename,filename);// node:internal/fs/promises:590// await binding.openFileHandle(pathModule.toNamespacedPath(path),// ^//// Error: ENOENT: no such file or directory, open
Then create file - テキスト - 🟦.txt and try to run these:
importfsfrom"node:fs/promises";constfilename="file - テキスト - 🟦.txt";functionexists(path,followSymbol=true){return(followSymbol ? fs.stat(path) : fs.lstat(path)).then(stats=>true).catch(error=>false);}awaitexists(filename);// node:internal/fs/promises:894// const result = await binding.stat(pathModule.toNamespacedPath(path),// ^//// Error: ENOENT: no such file or directory, stat
How often does it reproduce? Is there a required condition?
Always with Node.js v20.8.0 and v18.18.0 only.
What is the expected behavior? Why is that the expected behavior?
The latest LTS 18.18.0 also contains this critical bug. 18.17.1 works OK.
AlttiRi
changed the title
[win][fs] support of filename with surrogate pairs is lost in the latesr release
[win][fs] support of filename with surrogate pairs is lost in the latest releases
Oct 1, 2023
bnoordhuis
added
duplicate
Issues and PRs that are duplicates of other issues or PRs.
fs
Issues and PRs related to the fs subsystem / file system.
windows
Issues and PRs related to the Windows platform.
labels
Oct 1, 2023
duplicateIssues and PRs that are duplicates of other issues or PRs.fsIssues and PRs related to the fs subsystem / file system.windowsIssues and PRs related to the Windows platform.
Version
v20.8.0
v18.18.0
Platform
Windows 10
Subsystem
fs
What steps will reproduce the bug?
Try to run it:
Then create
file - テキスト - 🟦.txt
and try to run these:How often does it reproduce? Is there a required condition?
Always with Node.js v20.8.0 and v18.18.0 only.
What is the expected behavior? Why is that the expected behavior?
It should work the same way as with Node.js 18.17.1.
What do you see instead?
Errors.
Additional information
I just updated my Node.js from 18.17.1 LTS to 20.8.0 Current and now my file scanner no more works.
The text was updated successfully, but these errors were encountered: