Skip to content

Commit 0c7545c

Browse files
committed
Switch win32 path_sep to '/', add comment explaining a bit.
1 parent 460d891 commit 0c7545c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/lib/win32_fs.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ impure fn list_dir(str path) -> vec[str] {
77
ret rustrt.rust_list_files(path+"*");
88
}
99

10-
const char path_sep = '\\';
10+
/* FIXME: win32 path handling actually accepts '/' or '\' and has subtly
11+
* different semantics for each. Since we build on mingw, we are usually
12+
* dealing with /-separated paths. But the whole interface to splitting and
13+
* joining pathnames needs a bit more abstraction on win32. Possibly a vec or
14+
* tag type.
15+
*/
16+
const char path_sep = '/';
1117

1218
// Local Variables:
1319
// mode: rust;

0 commit comments

Comments
 (0)