Skip to content

Commit abe2a0f

Browse files
committed
Skip maybe_verbatim handling on 9x/ME
1 parent f841709 commit abe2a0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/std/src/sys/windows/path.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ fn parse_next_component(path: &OsStr, verbatim: bool) -> (&OsStr, &OsStr) {
214214
///
215215
/// This path may or may not have a verbatim prefix.
216216
pub(crate) fn maybe_verbatim(path: &Path) -> io::Result<Vec<u16>> {
217+
if !super::compat::is_windows_nt() {
218+
return to_u16s(path);
219+
}
220+
217221
let path = to_u16s(path)?;
218222
get_long_path(path, true)
219223
}

0 commit comments

Comments
 (0)