yuja added a comment.
> I am looking at Mozilla's rust winapi bindings, let me see if I can directly wrap around winapi::um::fileapi::FindFirstFileA <https://docs.rs/winapi/*/x86_64-pc-windows-msvc/winapi/um/fileapi/fn.FindFirstFileA.html> That's probably a hard way. I was thinking of something converting between OsStr (i.e. Path) and MBCS bytes by using Win32 API, instead of calling out the "A" API. https://msdn.microsoft.com/en-us/library/windows/desktop/dd319072(v=vs.85).aspx We don't do that in Python, but Rust's type system will help making it right. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2057 To: Ivzhh, #hg-reviewers, kevincox Cc: yuja, glandium, krbullock, indygreg, durin42, kevincox, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel