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

Problem with surrogate pairs in filenames #50928

Closed
BobFrankston opened this issue Nov 27, 2023 · 3 comments
Closed

Problem with surrogate pairs in filenames #50928

BobFrankston opened this issue Nov 27, 2023 · 3 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.

Comments

@BobFrankston
Copy link

Version

21.1.0

Platform

Windows 11

Subsystem

fs

What steps will reproduce the bug?

create a file name like "GitHub - TuyaAPIcli 🔧 A CLI for Tuya devices.URL"

use fs.existsSync() -- it will say it does not exist but fs.readdir(Sync) will return it

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

Seems reproducable

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

Should act like a normal file name and fs.existsSync should acknowledge it, especially when the directory lister returns it.

What do you see instead?

I'm told the file does not exist.

Additional information

No response

@BobFrankston
Copy link
Author

I just tested in WSL and it works there so it's a bug in Windows but not Linux (or, at least, not WSL)

@kylo5aby
Copy link
Contributor

seems it duplicate to #48813

@marco-ippolito marco-ippolito added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Jan 18, 2024
@marco-ippolito
Copy link
Member

Duplicate of #48673

@marco-ippolito marco-ippolito marked this as a duplicate of #48673 Jan 18, 2024
@marco-ippolito marco-ippolito closed this as not planned Won't fix, can't repro, duplicate, stale Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.
Projects
None yet
Development

No branches or pull requests

3 participants