vapier / ncompress

a fast, simple LZW file compressor
https://vapier.github.io/ncompress/
The Unlicense
104 stars 18 forks source link

add --compat9 flag for older buggy -b9 compressed files #39

Open N-R-K opened 5 months ago

N-R-K commented 5 months ago

on ncompress v4.1 and below, -b9 """works""" but it doesn't actually do 9 bit output. it increments n_bits to 10 anyways even though the dictionary is limited to 9 bits.

this patch adds a --compat9 flag that allows it to decompress such files.

Fixes: https://github.com/vapier/ncompress/pull/34#issuecomment-2106184649