liblzmadec sucks
By chys on May 1st, 2009Both the executable lzma and the library liblzmadec are included in the package lzma-utils (in Gentoo).
If I compress a file a.txt like this:
lzma a.txt
then liblzmadec can decompress a.txt.lzma perfectly.
However, if I compress it like this:
lzma < a.txt > a.txt.lzma
Then liblzmadec fails.
LZMA is a compression algorithm whose application rate has been rapidly growing in the past year. In most cases, it has significantly better compression ratio compressed to bzip2 and gzip, and decompresses significantly faster. However, its compression process is extremely slow (probably 10 times longer the time than bzip2).
One of the algorithms supported by 7zip is LZMA. In Linux we usually use LZMA Utils instead.
GNU provided the tarball of some versions of coreutils in LZMA (in addition to the traditional GZIP), although they have recently switched to xz.
Related posts:
Tags: compression, dev
