Looking at lib/glob.c in the gnulib sources, there is some Windows-specific code, so it looks like it is intended to work on Windows systems, but there are some things that don't look quite right. For example, it does not seem to uniformly use backslash as a directory separator, and if WINDOWS32 is defined, it looks for HOMEDRIVE and HOMEPATH instead of calling some Windows API function (maybe GetUserProfileDirectory?).
Is glob.c expected to work on Windows systems? Should it accept \, /, or both as the directory separator? I suppose if it allows \ as the directory separator, then GLOB_NOESCAPE would always have to be set. Is there a better way for it to get the home directory info? jwe