glib/tests/fileutils.c: Fix stdio Wrapper Test on Windows

Chun-wei Fan requested to merge fix-fileutils-test-windows into master


This MR is intended to fix the glib/tests/fileutils.c test program running on Windows, at least for Visual Studio builds.

From the commit message:

The g_creat() call was done in *nix style in regards to the mode parameter, which the Windows CRT isn't going to understand (nor like, on newer CRTs).

Update the program such that it will pass, by using Windows-style permission mode parameters for g_creat(), on Windows.

With blessings, thank you!

Merge request reports