Skip to content

Conversation

@njenia
Copy link

@njenia njenia commented Jan 7, 2026

Fixes #855

Previously, ouch would only decompress the first frame/stream of concatenated compressed files. This is a valid format for gzip, bzip2, and lz4 where multiple compressed streams are concatenated together.

Changes:

  • Use MultiGzDecoder instead of GzDecoder for gzip
  • Use MultiBzDecoder instead of BzDecoder for bzip2
  • Add MultiFrameLz4Decoder wrapper to handle concatenated lz4 frames
  • Add integration tests for concatenated stream decompression

@njenia njenia force-pushed the fix-concatenated-streams branch from 5f7d705 to 6688f4d Compare January 7, 2026 13:27
Fixes ouch-org#855

Previously, ouch would only decompress the first frame/stream of
concatenated compressed files. This is a valid format for gzip, bzip2,
and lz4 where multiple compressed streams are concatenated together.

Changes:
- Use MultiGzDecoder instead of GzDecoder for gzip
- Use MultiBzDecoder instead of BzDecoder for bzip2
- Add MultiFrameLz4Decoder wrapper to handle concatenated lz4 frames
- Add integration tests for concatenated stream decompression
@njenia njenia force-pushed the fix-concatenated-streams branch from 6688f4d to ed31fbc Compare January 7, 2026 17:15
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.

ouch ignores concatenated files in .gz and .xz

1 participant