Skip to content

Add tests for filenames with surrogate pairs on Windows #51789

@AlttiRi

Description

@AlttiRi

What is the problem this feature will solve?

That issue is still not fixed in LTS. There are no guarantees that the bug will not appear in Current again.

What is the feature you are proposing to solve the problem?

Just add tests for fs functions that will work with names contain surrogate pairs (emoji, but not only):

import fs from "node:fs/promises";

await fs.writeFile("🚀🔥🛸.txt", "");
await fs.lstat("🚀🔥🛸.txt");

Don't release Node.js while they fail.

What alternatives have you considered?

Something like this:
https://github.com/oven-sh/bun/blob/3221bfeeb7036e76872c1a602aa5cd7c83ed3b4a/test/js/node/fs/fs.test.ts#L681-L701

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions