From 5b6b2666a67f99f54588f1dd226f79739d01cd46 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Sat, 11 Feb 2023 17:54:59 -0600 Subject: [PATCH] Fix not converting path to lowercase before hashing --- repak/src/pak.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/repak/src/pak.rs b/repak/src/pak.rs index 7997339..2ef8c1a 100644 --- a/repak/src/pak.rs +++ b/repak/src/pak.rs @@ -490,6 +490,7 @@ fn generate_path_hash_index( writer.write_u32::(entries.len() as u32)?; for (path, offset) in entries.keys().zip(offsets) { let utf16le_path = path + .to_lowercase() .encode_utf16() .flat_map(|c| c.to_le_bytes()) .collect::>();