Permalink
Commits on Sep 12, 2016
  1. Merge pull request #30 from EugeneN/master

    Fix `OptLocation` option handling
    committed on GitHub Sep 12, 2016
Commits on Sep 6, 2016
Commits on Jul 18, 2016
  1. Merge pull request #29 from mistmist/master

    toArchive eats too much memory when a data descriptor holds the size
    committed on GitHub Jul 18, 2016
  2. toArchive eats too much memory when a data descriptor holds the size

    The size fields in the local file headers may not contain valid values,
    in which case the sizes are stored in a "data descriptor" that follows
    the file data.
    
    The handling of this case currently uses excessive amounts of memory,
    because the entire compressed file is read at that point and temporarily
    stored in a [Word8] list, which is rather wasteful for large streams.
    
    Implement getWordsTilSig more efficiently by iteratively reading chunks
    as strict ByteStrings and then converting these to a lazy ByteString at
    the end.  This is a bit tricky because the magic separator 4 bytes long,
    but only byte-aligned.
    Michael Stahl committed Jul 8, 2016
Commits on May 24, 2016
  1. test-zip-archive: use withTempDir to create temporary directory.

    This should help fix problems some have encountered with the
    test suite leaving a temporary directory behind.
    committed May 24, 2016
Commits on Apr 3, 2016
Commits on Mar 29, 2016
  1. Zip executable: get version from cabal Paths_zip_archive.

    Previously this was hard-coded and out of date.
    Closes #27.
    committed Mar 29, 2016
Commits on Mar 28, 2016
  1. Updated changelog.

    committed Mar 28, 2016
  2. Set eVersionMadeBy to 0 (FAT) in toEntry.

    Since external attributes are set to 0 by default.
    
    Only set it to something else if we're actually reading
    the file and getting its external attributes.
    
    I suspect this will fix jgm/pandoc#2822.
    committed Mar 28, 2016
Commits on Feb 23, 2016
  1. Improved eVersionMadeWith handling.

    We should only set attributes if (a) compiled on posix machine
    and (b) the archive was created on a posix machine.
    committed Feb 23, 2016
  2. Version bump to 0.3.

    committed Feb 23, 2016
  3. Updated changelog.

    committed Feb 23, 2016
  4. Added eVersionMadeBy to Entry.

    committed Feb 23, 2016
  5. Updated changelog.

    committed Feb 23, 2016
  6. Properly set 'version made by' field in putFileHeader.

    Thanks to Dan Aloni. See #26.
    committed Feb 23, 2016
Commits on Feb 22, 2016
  1. Minor code cleanup.

    committed Feb 22, 2016
  2. Updated changelog.

    committed Feb 22, 2016
  3. Update changelog.

    committed Feb 22, 2016
  4. Bump version to 0.2.4.

    committed Feb 22, 2016
  5. Throw CRC32Exception if checksum doesn't match.

    Added `ZipException` (API change).
    committed Feb 22, 2016
  6. fromEntry no longer checks for CRC32 match.

    Previously, it issued 'error' if the match failed.  This is
    bad behavior for a pure library function!
    
    CRC32 match is now checked in writeEntry instead.  If match
    fails, instead of calling error we simply don't write the
    file, and issue a warning to sderr.
    committed Feb 22, 2016
Commits on Feb 21, 2016
  1. Test suite: return nonzero status if there are test failures.

    Previously we mistakenly did this only on 'errors', not failures.
    
    So travis tests misleadingly passed.
    committed Feb 21, 2016
  2. Moved CPP in test file.

    This will more accurately show the number of tests run.
    committed Feb 21, 2016
  3. Make file attribute setting unconditional.

    Removed OptAttributes (which was added after the last release,
    so this is not an API change).
    committed Feb 21, 2016
  4. Added stack.yaml.

    committed Feb 21, 2016