You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems, once again, a problem from using std::filesystem::path on Windows, and wasn't taken care of as part of #55015 (cc @anonrig who authored #53617). See #53063 (comment) on an explanation about this class of bugs.
(With the amount of crashes reported for this bug on Windows, I start to feel that we might as well should just forbid std::filesystem::path in the code base unless it's absolutely justified, as it's so easy to miss the encoding inconsistency on Windows.....)
It seems no one is working on it yet, so marking it as good first issue. See #53063 (comment) on how this sort of bug happens and how they can be fixed. In this case I believe one just needs to change
@geeksilva97 I would like to try this if you haven't done it yet. I started building with the suggested change and will write the test to check. This would be my first contribution here. Thank you.
@geeksilva97 I would like to try this if you haven't done it yet. I started building with the suggested change and will write the test to check. This would be my first contribution here. Thank you.
Activity
islandryu commentedon Nov 29, 2024
It might be related to #55773.
kanasimi commentedon Nov 29, 2024
v22.11.0 is OK, but v23.0.0 also has problems.
joyeecheung commentedon Nov 29, 2024
This seems, once again, a problem from using
std::filesystem::pathon Windows, and wasn't taken care of as part of #55015 (cc @anonrig who authored #53617). See #53063 (comment) on an explanation about this class of bugs.(With the amount of crashes reported for this bug on Windows, I start to feel that we might as well should just forbid
std::filesystem::pathin the code base unless it's absolutely justified, as it's so easy to miss the encoding inconsistency on Windows.....)anonrig commentedon Nov 29, 2024
I recommend forbidding std::filesystem::path as well. It's not worth it.
joyeecheung commentedon Dec 2, 2024
It seems no one is working on it yet, so marking it as good first issue. See #53063 (comment) on how this sort of bug happens and how they can be fixed. In this case I believe one just needs to change
node/src/node_file.cc
Lines 1629 to 1630 in 56e5bd8
To use
ToU8StringView()instead, since the call was actually changed to usestd::filesystemcalls, which only takesstd::filesystem::paths.geeksilva97 commentedon Dec 2, 2024
I will give it a try
Yeaseen commentedon Dec 3, 2024
@geeksilva97 I would like to try this if you haven't done it yet. I started building with the suggested change and will write the test to check. This would be my first contribution here. Thank you.
geeksilva97 commentedon Dec 3, 2024
Of course. Go for it.
kanasimi commentedon Dec 3, 2024
Do we need to do an extensive check to see if there are other places with similar problems?
jimmywarting commentedon Dec 12, 2024
fs: fix rmSync to handle non-ASCII characters
fs: fix rmSync to handle non-ASCII characters
fs: fix rmSync to handle non-ASCII characters
fs: fix rmSync to handle non-ASCII characters
fs: fix rmSync to handle non-ASCII characters
fix(гейт): снятие и очистка состояния переживают пути с не-ASCII симв…
fix(desktop): harden before-pack cleanup against the same non-ASCII r…
fix(desktop): harden before-pack cleanup against the same non-ASCII r…