In fossil, the following bug was reported: http://fossil-scm.org/index.html/tktview?name=18cff45a4e
Here is a minimal example which shows this is a bug in MinGW. Compiling the
example program and running it should give a list of files in the current
directory. In stead it only returns empty lines, one for each file present
in the current directory. When commenting the first line it works as expected.