>> Do you have an example of a file name that should not work? I now have >> three versions from GUB (one with MoveFileExW; one without but with >> wstat; and one without wstat) and all work correctly on a recent >> Windows 10. Does that mean the issue is gone with a recent update? > > Might it be dependent on which VC++ package you have installed (or > not) that determines which definition is used by Windows? > > i.e. (from Hosoda-san) > >> `stat ()` in newer UCRTs than msvcrt.dll does not have the problem. > > I won't pretend to know the internals here but my work laptop has a > number of different iterations of the older VC++ components installed, > some of them go back to 2013 (for old internally made tools we still > use now and again) and they seem to co-exist but I don't know what it > is LP calls in this case. Some were installed manually and some by the > various software installers I have run.
If I understand correctly, lilypond.exe generated by GUB uses msvcrt.dll instead of UCRT. The recent Visual C++ generated executables use UCRT. The executables generated by MinGW normally use msvcrt.dll. The recent MinGW can generate executables that use UCRT by a special configuration. However, GUB contains older MinGW that can not be configured as such.