Title: fs.rmSync cannot remove files under chinese-named directory · Issue #61067 · nodejs/node · GitHub
Open Graph Title: fs.rmSync cannot remove files under chinese-named directory · Issue #61067 · nodejs/node
X Title: fs.rmSync cannot remove files under chinese-named directory · Issue #61067 · nodejs/node
Description: Version v24.12.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Subsystem No response What steps will reproduce the bug? Run a PowerShell Run command mkdir "D:/2025年12月" Run command "" | Set-Content D:/2025年12月/test.txt Run // D:/script....
Open Graph Description: Version v24.12.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Subsystem No response What steps will reproduce the bug? Run a PowerShell Run command mkdir "D:/2025年12月" Run command "" | Set-Conten...
X Description: Version v24.12.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Subsystem No response What steps will reproduce the bug? Run a PowerShell Run command mkdir "D:/2025年12月" Run command "...
Opengraph URL: https://github.com/nodejs/node/issues/61067
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs.rmSync cannot remove files under chinese-named directory","articleBody":"### Version\n\nv24.12.0\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.22631.0 x64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n\n1. Run a PowerShell\n2. Run command `mkdir \"D:/2025年12月\"`\n3. Run command `\"\" | Set-Content D:/2025年12月/test.txt`\n4. Run\n``` \n// D:/script.js\nconst fs = require('fs');\nfs.rmSync('2025年12月/test.txt');\n\n```\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time.\nTested on Windows Node v24.12.0.\nNode v22.10.0 does not appear to have this issue.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe file should be deleted.\n\n### What do you see instead?\n\nThe file remains on disk.\n\n### Additional information\n\nThis seems related to non-Ascii path handling on Windows.\n\nPossibly the same underlying issue as #58759 and , but with a different failure mode (silent no-op instead of crash).\n\n- When the filename itself contains Chinese characters, `rmSync` crash without throw.\n- When an absolute path contains Chinese characters, `rmSync` also crash without throw.\n- When the file is located inside a Chinese-named directory (but the filename is ASCII-only), `rmSync` is a no-op but does not throw(no deletion).\n\nRelated issues:\n#58759\n#56049","author":{"url":"https://github.com/Yuchen-Dai","@type":"Person","name":"Yuchen-Dai"},"datePublished":"2025-12-15T04:20:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/61067/node/issues/61067"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:82961fc1-815d-20c8-fbbf-b278d409c252 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE0E:8377:10CF59E:17371EA:6A4CA33B |
| html-safe-nonce | b9efd0e6dbd75e87b2cc8bb0f3b7a14790c26352052c2c6ce933fc26cc5bd72c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTBFOjgzNzc6MTBDRjU5RToxNzM3MUVBOjZBNENBMzNCIiwidmlzaXRvcl9pZCI6IjQ5NzU0NDUwNTQxMjAwNDMzMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d728366f580ba764d9b92b85c9d3496d4997d428b9b4c3dd187aa23abb84c530 |
| hovercard-subject-tag | issue:3728628955 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61067/issue_layout |
| twitter:image | https://opengraph.githubassets.com/522d30f3da9224170323f01c9404445610c7afea832ffc83fc8ca3837061f8d3/nodejs/node/issues/61067 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/522d30f3da9224170323f01c9404445610c7afea832ffc83fc8ca3837061f8d3/nodejs/node/issues/61067 |
| og:image:alt | Version v24.12.0 Platform Microsoft Windows NT 10.0.22631.0 x64 Subsystem No response What steps will reproduce the bug? Run a PowerShell Run command mkdir "D:/2025年12月" Run command "" | Set-Conten... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yuchen-Dai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width