Open evoskuil opened 9 years ago
I've located and resolved the last bullet item, just a case of hardwired "/" in some cases, where the code normalizes to the platform in other cases.
The other items are a consequence of UNICODE being defined. This implies that some code is issuing a UNICODE definition or API call.
I'm encountering multiple problems attempting to use the latest build of GSL on Windows to enumerate files and/or directories.
Using the documentation as an example:
The run fails because
f.name
(andf.size
) is undefined. But further trials also shows:dir.file
qualification). This gives the same length enumeration asdir.
even when there is a mix of files and directories in the opened directory.dir.directory
is qualified, no directories (or files) are ever enumerated, the enumeration is always empty.path
attribute, but it is always empty.path
are defined on returned files or directories.This last item is not technically a break, but would make portable code hard, because presumably this is a behavior specific to Windows. But note that other path references in GSL on Windows don't require forward slashing:
dir.path
is correct in the case where the opened directory ends with "\" but not when it ends with "/" (or when it is not terminated).I'm really stuck at this point. I looked through the GSL source, but it's going to be a slog for me. Any help would be much appreciated!