From 34b99956c9f8ab142c4ef824a3d5fefc1848155b Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 9 May 2024 19:04:08 -0700 Subject: [PATCH] chore: shallow_copy_file needs to update file_name_raw --- src/write.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/write.rs b/src/write.rs index 620a2b8b..bbbef3aa 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1456,6 +1456,7 @@ impl ZipWriter { let src_index = self.index_by_name(src_name)?; let mut dest_data = self.files[src_index].to_owned(); dest_data.file_name = dest_name.into(); + dest_data.file_name_raw = dest_name.into(); self.insert_file_data(dest_data)?; Ok(()) } @@ -2179,7 +2180,7 @@ mod test { v[54] = 10; v[108] = 10; v[158] = 10; - + assert_eq!(result.get_ref(), &v); }