diff options
| author | Graydon Hoare <[email protected]> | 2011-03-20 19:43:12 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-20 19:43:43 -0700 |
| commit | 0c7545c1ceb96dce7e4ace1718dcb3077f877135 (patch) | |
| tree | 6cf9bf616cc5eb6c8cd4859e7433df8bd5c4404d /src | |
| parent | Add slightly nicer failure message to io.rs when it can't open a file. (diff) | |
| download | rust-0c7545c1ceb96dce7e4ace1718dcb3077f877135.tar.xz rust-0c7545c1ceb96dce7e4ace1718dcb3077f877135.zip | |
Switch win32 path_sep to '/', add comment explaining a bit.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/win32_fs.rs | 8 |
1 files changed, 7 insertions, 1 deletions
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; |