> These bright guys (the mingw64 developers) meant to fix one stat() bug,
> but
> 1) in the process, opened another bug,
> 2) did not apply their fix to the other variants (_stat, _stat64, etc.)
Observation confirmed by looking at the mingw64 source code:
http://mingw-w64.sourcearchive.com/doc
The 'stat' module makes two checks:
checking whether stat handles trailing slashes on directories...
checking whether stat handles trailing slashes on files...
On native Windows, the results are:
* for mingw and MSVC 9:
checking whether stat handles trailing slashes on directories... no