From 7b83dd6ef9e2a12f97c8f7045daff43a1f431f37 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 19 Oct 2023 22:06:51 -0400 Subject: [PATCH] Fix some UTF-16 on Windows --- crates/compiler/build/src/program.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/compiler/build/src/program.rs b/crates/compiler/build/src/program.rs index 28f959caaaf..9f1e32ddb6c 100644 --- a/crates/compiler/build/src/program.rs +++ b/crates/compiler/build/src/program.rs @@ -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 } };