-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
fs.watch filename incorrect #6163
Copy link
Copy link
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
Description
Activity
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
The file names that the
fs.watchfunction reports is different fromfs.readdirSyncwhen the file names have Chinese characters, with thefs.readdirSyncfile names being correct.Buffer.from(badFileNameFromFsWatch, 'binary').toString('utf-8')will produce the correct file name, consistent withfs.readdirSync.