Skip to content

Draft: Explicitly translate paths for Windows when generating c2p state

Fredrik Wieczerkowski requested to merge translate-c2p-paths into master

We need to translate Unix paths (e.g. /c/Users/...) to Windows paths (e.g. C:/Users/...) when calling from a MinGW process into a native Windows process. MinGW handles this conversion automatically in simple cases (e.g. single command-line arguments), but fails in more complex cases which is why we need an explicit translation there. On Unix-like systems the translation reduces to a simple no-op (see NATIVEPATH=echo).

Marked as a draft for now since it needs more testing, especially to make sure that we e.g. don't regress on the SWI build.

Merge request reports