Skip to content

Commit

Permalink
Fix some UTF-16 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfeldman committed Oct 20, 2023
1 parent e25be01 commit 7b83dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/compiler/build/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,8 @@ fn build_loaded_file<'a>(

let last = path.as_os_str().encode_wide().last();

last == Some('/') || last == Some('\\');
last == Some(0x002f)// UTF-16 slash
|| last == Some(0x005c) // UTF-16 backslash
}
};

Expand Down

0 comments on commit 7b83dd6

Please sign in to comment.