fs: fix rmSync to handle non-ASCII characters · nodejs/node@206e353 · GitHub
Skip to content

Commit 206e353

Browse files
YeaseenRafaelGSS
authored andcommitted
fs: fix rmSync to handle non-ASCII characters
Update fs.rmSync to properly handle file paths that include non-ASCII characters. This change prevents crashes and errors when attempting to delete files with international or special characters in their names. Add a test in test/parallel to ensure that files with non-ASCII characters can be deleted without issues. This covers cases that previously caused unexpected behavior or crashes on certain file systems. Fixes: #56049 PR-URL: #61108 Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 8156738 commit 206e353

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

src/node_file.cc

Lines changed: 2 additions & 3 deletions
Lines changed: 32 additions & 0 deletions

0 commit comments

Comments
 (0)