Skip to content

Commit

Permalink
Skip maybe_verbatim handling on 9x/ME
Browse files Browse the repository at this point in the history
  • Loading branch information
seritools committed Dec 29, 2023
1 parent f841709 commit abe2a0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/std/src/sys/windows/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ fn parse_next_component(path: &OsStr, verbatim: bool) -> (&OsStr, &OsStr) {
///
/// This path may or may not have a verbatim prefix.
pub(crate) fn maybe_verbatim(path: &Path) -> io::Result<Vec<u16>> {
if !super::compat::is_windows_nt() {
return to_u16s(path);
}

let path = to_u16s(path)?;
get_long_path(path, true)
}
Expand Down

0 comments on commit abe2a0f

Please sign in to comment.