diff --git a/src/types.rs b/src/types.rs index 1115fea82..f932b7265 100644 --- a/src/types.rs +++ b/src/types.rs @@ -712,8 +712,13 @@ impl ZipFileData { let permissions = options.permissions.unwrap_or(0o100644); let file_name: Box = name.to_string().into_boxed_str(); let file_name_raw: Box<[u8]> = file_name.bytes().collect(); + let system = if cfg!(windows) { + System::Dos + } else { + System::Unix + }; let mut local_block = ZipFileData { - system: System::Unix, + system: system, version_made_by: DEFAULT_VERSION, flags: 0, encrypted: options.encrypt_with.is_some() || {