Skip to content

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

Closed

Description

@user7230724

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.

Activity

  1. user7230724 commented on Jul 17, 2023

    @user7230724
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions