From a5980e2abd10035fe05e64f989cbdf9be92ee38d 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/compiler/build/src/program.rs b/crates/compiler/build/src/program.rs index 28f959caaaf..ffef65fda6d 100644 --- a/crates/compiler/build/src/program.rs +++ b/crates/compiler/build/src/program.rs @@ -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 */; } };