Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change DOS date from 0x0000 to 0x0021 #47

Merged
merged 4 commits into from
Apr 11, 2024
Merged

Change DOS date from 0x0000 to 0x0021 #47

merged 4 commits into from
Apr 11, 2024

Conversation

nhz2
Copy link
Member

@nhz2 nhz2 commented Apr 11, 2024

This PR allows Zip archives created with this package to be read by ZipStreams.jl

This also matches the dos date used by Info-Zip when run with the -X flag and 7zip when run with the -mtm- flag.

This date is "1980-01-01", the previous date was the invalid "1980-00-00"

Copy link

codecov bot commented Apr 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.61%. Comparing base (7200271) to head (3db7a57).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
- Coverage   99.61%   99.61%   -0.01%     
==========================================
  Files           6        6              
  Lines         773      772       -1     
==========================================
- Hits          770      769       -1     
  Misses          3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -121,6 +123,62 @@ include("external_unzippers.jl")
end
end

@testset "Writer compat with ZipStreams" begin
# setup test env for ZipStreams
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ZipStreams needs an old version of TranscodingStreams, so I'm using Malt to run it in an isolated environment.

@nhz2 nhz2 changed the title Change zero dos date from 0x0000 to 0x0021 Change DOS date from 0x0000 to 0x0021 Apr 11, 2024
@nhz2 nhz2 merged commit 7db532e into main Apr 11, 2024
13 checks passed
@nhz2 nhz2 deleted the test-with-zipstreams branch April 11, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant