From 0c7545c1ceb96dce7e4ace1718dcb3077f877135 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sun, 20 Mar 2011 19:43:12 -0700 Subject: Switch win32 path_sep to '/', add comment explaining a bit. --- src/lib/win32_fs.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/win32_fs.rs b/src/lib/win32_fs.rs index f88d7798..8ad1f1ef 100644 --- a/src/lib/win32_fs.rs +++ b/src/lib/win32_fs.rs @@ -7,7 +7,13 @@ impure fn list_dir(str path) -> vec[str] { ret rustrt.rust_list_files(path+"*"); } -const char path_sep = '\\'; +/* FIXME: win32 path handling actually accepts '/' or '\' and has subtly + * different semantics for each. Since we build on mingw, we are usually + * dealing with /-separated paths. But the whole interface to splitting and + * joining pathnames needs a bit more abstraction on win32. Possibly a vec or + * tag type. + */ +const char path_sep = '/'; // Local Variables: // mode: rust; -- cgit v1.2.3