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

Regression in v20.4.0, some unicode characters no longer supported in file names #48813

Closed
user7230724 opened this issue Jul 17, 2023 · 1 comment

Comments

@user7230724
Copy link

user7230724 commented Jul 17, 2023

Version

v20.4.0

Platform

Windows NT 10.0.19043.0 x64

Subsystem

fs

What steps will reproduce the bug?

Code:

const fs = require('fs');
const name = String.fromCodePoint(0x1F525);
fs.writeFileSync(name, '');

Results:

> node-v18.16.1 test.js

> node-v20.4.0 test.js
node:internal/fs/utils:351
    throw err;
    ^

Error: ENOENT: no such file or directory, open '🔥'

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

Consistently.

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

Create an empty file with the given name.

What do you see instead?

An error.

@user7230724
Copy link
Author

Seems like a duplicate of #48673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant