~lattis/muon#74: 
path.c: on Windows, separator is either '/' or '\\'

in path.c, there are several cases where a char is compared to the path separator '/'. But on Windows, path separator is either '/' or '\\'. One solution : a macro in path.h, like

#ifdef _WIN32
#define IS_PATH_SEP(c) (((c) == '\\') || ((c) == '/'))
#else
#define IS_PATH_SEP(c) ((c) == '/')
#endif

and use it each time there is a == PATH_SEP

Status
RESOLVED CLOSED
Submitter
~vtorri
Assigned to
No-one
Submitted
1 year, 7 months ago
Updated
1 year, 2 months ago
Labels
No labels applied.

~vtorri 1 year, 3 months ago

this is fixed in a recent commit: we use now '/' as path separator on WIndows

~lattis REPORTED CLOSED 1 year, 2 months ago

Register here or Log in to comment, or comment via email.