> If I have understood it correctly, the best way to handle file names on native > Windows is to > - use '\\' as a directory separator when composing file names, > - allow both '/' and '\\' when inspecting file names.
Yes, that is largely what I implemented. There is a platform specific DIR_SEPARATOR used for path building and then an ISSLASH function used for reading (or respective indexof type functions for reading the last ). I did implement most of the shared path code in lib/filename.h but for windows I do need strpbrk. Am I ok to just add that as a dependency for the filename module? I know some of the modules adds deps with conditions like [test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1] but those are more about if that module is required. I could add a conditional like: gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_PATH], [case "$host_os" in cygwin* | mingw* | windows*) true;; *) false;; esac]) as used on some other modules and only add that dep for windows. ~mitch (they, them)