Currently libXpm twists through a bunch of contortions to fork/exec compress and gzip for reading and writing .xpm.Z and .xpm.gz files. It would be simpler, faster, and safer to simply use zlib to do this instead - any volunteers?
zlib does not do LZW (.Z), does it?
(In reply to comment #1) > zlib does not do LZW (.Z), does it? When I try % cat foo.Z | gunzip -c | less # I can read the uncompressed content of "foo" ... sounds that somehow at least gunzip can read files made by /usr/bin/compress (this doesn't gurantee that libz.so can handle this compression by default, seems we would have to do some trial-n-error testing here :)
my copy of gzip (GNU 1.3.5) by does not even use zlib. It also can't compress in LZW.
from gzip homepage : gzip produces files with a .gz extension. gunzip can decompress files created by gzip, compress or pack. gzip was developed as a replacement for compress because of the UNISYS and IBM patents covering the LZW algorithm used by compress. so, gzip misses the .Z creation zlib only does gz/LZ77 -------- any lib available that does the LZW compression ?
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
libarchive? http://code.google.com/p/libarchive/wiki/Examples
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.