<div dir="ltr"><div>Hi,</div><div><br></div><div>Since about three weeks ago, I have been receiving reports that contain the error message "no appropriate script or program found: fmtutil" from Windows users when calling `fmtutil-sys.exe --all`, e.g., <a href="https://github.com/yihui/yihui.org/discussions/1089#discussioncomment-7265373">https://github.com/yihui/yihui.org/discussions/1089#discussioncomment-7265373</a> (you can search for the error message on this page to see other similar reports)</div><div><br></div><div>From my limited understanding, the error seems to be from this line: <a href="https://tug.org/svn/texlive/trunk/Master/bin/windows/runscript.tlu?revision=68579&view=markup#l864">https://tug.org/svn/texlive/trunk/Master/bin/windows/runscript.tlu?revision=68579&view=markup#l864</a> The variable `progname` is `fmtutil` (fmtutil-sys.exe -> fmtutil-sys -> fmtutil), but none of the extensions in `extlist` works because only `fmtutil.exe` exists (but `extlist` doesn't include `.exe`): <a href="https://tug.org/svn/texlive/trunk/Master/bin/windows/">https://tug.org/svn/texlive/trunk/Master/bin/windows/</a> I don't really understand Lua, and I'm not sure if my diagnosis is correct.</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Another issue that might be relevant (apologies if not) is that calling executables by their short paths (Windows 8+3 names) doesn't work, as I mentioned to Norbert last week: <a href="https://github.com/rstudio/tinytex/issues/427#issuecomment-1785546973">https://github.com/rstudio/tinytex/issues/427#issuecomment-1785546973</a> That is, executing FMTUTI~1.EXE doesn't work, although it's a valid path name on Windows. In this case, `progname` would be `FMTUTI~1`, which understandably can't be found. If possible, the path should be converted to its canonical form beforehand. I'm not sure if this was a recent change, but I started to receive this type of report only recently.</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Thanks!</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br>Regards,<br>Yihui<br>--<br><a href="https://yihui.org" target="_blank">https://yihui.org</a></div></div></div>