Fix not converting path to lowercase before hashing

This commit is contained in:
Truman Kilen 2023-02-11 17:54:59 -06:00
parent 8fa8dfa2f9
commit 5b6b2666a6

View file

@ -490,6 +490,7 @@ fn generate_path_hash_index<W: Write>(
writer.write_u32::<LE>(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::<Vec<_>>();