Skip to content

Commit

Permalink
set default path separator to '/' in UCRT64 of MSYS
Browse files Browse the repository at this point in the history
The environments of MSYS: [[https://www.msys2.org/docs/environments/]]
  • Loading branch information
Jian Wang committed Mar 4, 2024
1 parent 3b2fd15 commit 60c4447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub fn default_path_separator() -> Option<String> {
if cfg!(windows) {
let msystem = env::var("MSYSTEM").ok()?;
match msystem.as_str() {
"MINGW64" | "MINGW32" | "MSYS" => Some("/".to_owned()),
"MINGW64" | "MINGW32" | "UCRT64" | "MSYS" => Some("/".to_owned()),
_ => None,
}
} else {
Expand Down

0 comments on commit 60c4447

Please sign in to comment.