bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glob on Windows systems


From: John W. Eaton
Subject: glob on Windows systems
Date: Thu, 7 Jan 2010 01:29:31 -0500

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]