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 a5980e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compiler/build/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ 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 a5980e2

Please sign in to comment.