Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Tracking issue: `std::filesystem::path` headaches, and breakage on Windows with non-ASCII paths | GoodFirstPicks

Tracking issue: `std::filesystem::path` headaches, and breakage on Windows with non-ASCII paths

nodejs/node 19 comments 25d ago
View on GitHub
highopenScope: somewhat clearSkill match: noNode.jsJavaScript

Why this is a good first issue

This issue involves complex path handling across multiple APIs and requires careful architectural planning.

AI Summary

The issue involves widespread problems with `std::filesystem::path` handling on Windows, particularly with non-ASCII paths, affecting multiple APIs. It requires a coordinated solution across the codebase, possibly involving a new wrapper API. Blockers include the need for careful planning and consensus among maintainers to avoid introducing new issues.

Issue Description

Version

v24.1.0

Platform

Microsoft Windows NT 10.0.19045.0 x64

Subsystem

No response

What steps will reproduce the bug?

Couldn't find a tracking issue for this one.

There are places in the source that handle std::filesystem::path objects, and on Windows, this involves conversion between UTF-8 strings and wchar-based paths. This can lead to path corruption, as previously discussed.

One example of this is #56049, which has an open PR to fix this specific usage. However, #58764 has just been reported, which affects a completely different area of the API. There are other examples of usage elsewhere in the source.

It feels like this probably needs a library-wide approach – even if not removing std::filesystem::path entirely as previously discussed, then at least some sort of internal wrapper API to abstract out potential footguns.

GitHub Labels

fswindows

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 35 points when you complete it!

Risk Flags

  • cross-cutting changes
  • potential for regression
  • requires architectural decisions
Loading labels...

Details

Points35 pts
Difficultyhigh
Scopesomewhat clear
Skill Matchno
Test Focusedno