Just to make my point more clear, with the patch texi2dvi will still fail absolute paths under WSL2 if the TeX engine is a non-WSL2 executable (for which the .exe extension is needed). I have not yet tried to install a LaTeX distro Linux package for WSL2, I expect that in that case it would just be like under Linux.
V. ________________________________ De : Vincent Belaïche <vincent....@hotmail.fr> Envoyé : jeudi 17 avril 2025 22:08 À : bug-texinfo@gnu.org <bug-texinfo@gnu.org> Objet : Making texi2dvi working better on Microsoft Windows 10 Hello, Lately I tried to compile some document on MsW10 with texi2pdf, and it failed both on an MSYS2 MINGW64 console and on a WSL2 console. With MSYS2 the reason was that $OSTYPE is cygwin, and not msys when the console is MINGW64 and not MSYS. With WSL2 the reason is that to call a non-WSL executable, the .exe extension shall not be omitted. Ok, the attached patch proposes a fix. WSL2 will still fail absolute paths. But it is still better with this patch than w/o it. Happy Easter, Vincent/