Skip to content

path.rs: "consts::path_sep" wrong on Windows? #2752

Closed
@kud1ing

Description

@kud1ing

I read this

#[cfg(windows)]
mod consts {
    const path_sep: char = '/';  // "The primary path separator character for the platform"
    const alt_path_sep: char = '\\';
}

and

#[doc = "Get the default path separator for the host platform"]
fn path_sep() -> str { ret str::from_char(consts::path_sep); }

as "'/' is the default and primary path separator on Windows".

Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions