Skip to content

Commit 7fd45de

Browse files
seritoolsmbilker
authored andcommitted
Skip maybe_verbatim handling on 9x/ME
1 parent fb2ee91 commit 7fd45de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ fn parse_next_component(path: &OsStr, verbatim: bool) -> (&OsStr, &OsStr) {
221221
/// This path may or may not have a verbatim prefix.
222222
pub(crate) fn maybe_verbatim(path: &Path) -> io::Result<Vec<u16>> {
223223
let path = to_u16s(path)?;
224+
225+
if !crate::sys::compat::version::is_windows_nt() {
226+
return path;
227+
}
228+
224229
get_long_path(path, true)
225230
}
226231

0 commit comments

Comments
 (0)