]> granicus.if.org Git - xz/log
xz
12 years agoDocs: Add new example programs.
Lasse Collin [Thu, 14 Jun 2012 07:52:33 +0000 (10:52 +0300)]
Docs: Add new example programs.

These have more comments than the old examples and
human-readable error messages. More tutorial-like examples
are needed but these are a start.

12 years agoDocs: Move xz_pipe_comp.c and xz_pipe_decomp.c to doc/examples_old.
Lasse Collin [Thu, 14 Jun 2012 07:33:27 +0000 (10:33 +0300)]
Docs: Move xz_pipe_comp.c and xz_pipe_decomp.c to doc/examples_old.

It is good to keep these around to so that if someone has
copied the decompressor bug from xz_pipe_decomp.c he has
an example how to easily fix it.

12 years agoDocs: Fix a bug in xz_pipe_decomp.c example program.
Lasse Collin [Thu, 14 Jun 2012 07:33:01 +0000 (10:33 +0300)]
Docs: Fix a bug in xz_pipe_decomp.c example program.

12 years agoTranslations: Update the Italian translation.
Lasse Collin [Thu, 31 May 2012 12:53:25 +0000 (15:53 +0300)]
Translations: Update the Italian translation.

Thanks to Milo Casagrande.

12 years agoTranslations: Update the French translation.
Lasse Collin [Wed, 30 May 2012 20:15:07 +0000 (23:15 +0300)]
Translations: Update the French translation.

Thanks to Adrien Nader.

12 years agoTranslations: Update the German translation.
Lasse Collin [Tue, 29 May 2012 19:26:27 +0000 (22:26 +0300)]
Translations: Update the German translation.

12 years agoTranslations: Update Polish translation.
Lasse Collin [Tue, 29 May 2012 19:12:57 +0000 (22:12 +0300)]
Translations: Update Polish translation.

12 years agoPreliminary NEWS for 5.0.4.
Lasse Collin [Tue, 29 May 2012 10:10:36 +0000 (13:10 +0300)]
Preliminary NEWS for 5.0.4.

12 years agoliblzma: Fix possibility of incorrect LZMA_BUF_ERROR.
Lasse Collin [Mon, 28 May 2012 17:42:11 +0000 (20:42 +0300)]
liblzma: Fix possibility of incorrect LZMA_BUF_ERROR.

lzma_code() could incorrectly return LZMA_BUF_ERROR if
all of the following was true:

  - The caller knows how many bytes of output to expect
    and only provides that much output space.

  - When the last output bytes are decoded, the
    caller-provided input buffer ends right before
    the LZMA2 end of payload marker. So LZMA2 won't
    provide more output anymore, but it won't know it
    yet and thus won't return LZMA_STREAM_END yet.

  - A BCJ filter is in use and it hasn't left any
    unfiltered bytes in the temp buffer. This can happen
    with any BCJ filter, but in practice it's more likely
    with filters other than the x86 BCJ.

Another situation where the bug can be triggered happens
if the uncompressed size is zero bytes and no output space
is provided. In this case the decompression can fail even
if the whole input file is given to lzma_code().

A similar bug was fixed in XZ Embedded on 2011-09-19.

12 years agoUpdate THANKS.
Lasse Collin [Mon, 28 May 2012 12:38:32 +0000 (15:38 +0300)]
Update THANKS.

12 years agoxz: Don't show a huge number in -vv when memory limit is disabled.
Lasse Collin [Mon, 28 May 2012 12:37:43 +0000 (15:37 +0300)]
xz: Don't show a huge number in -vv when memory limit is disabled.

12 years agoxz: Document the "summary" lines of --robot -lvv.
Lasse Collin [Sun, 27 May 2012 19:30:17 +0000 (22:30 +0300)]
xz: Document the "summary" lines of --robot -lvv.

This documents only the columns that are in v5.0.
The new columns added in the master branch aren't
necessarily stable yet.

12 years agoxz: Fix output of verbose --robot --list modes.
Lasse Collin [Sun, 27 May 2012 18:53:20 +0000 (21:53 +0300)]
xz: Fix output of verbose --robot --list modes.

It printed the filename in "filename (x/y)" format
which it obviously shouldn't do in robot mode.

12 years agoUpdate THANKS.
Lasse Collin [Thu, 10 May 2012 18:15:17 +0000 (21:15 +0300)]
Update THANKS.

12 years agoDocs: Cleanup line wrapping a bit.
Lasse Collin [Thu, 10 May 2012 18:14:16 +0000 (21:14 +0300)]
Docs: Cleanup line wrapping a bit.

12 years agoFix a few typos and add some missing articles in some documents.
Benno Schulenberg [Tue, 13 Mar 2012 21:04:04 +0000 (22:04 +0100)]
Fix a few typos and add some missing articles in some documents.

Also hyphenate several compound adjectives.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
12 years agoWindows: Update notes about static linking with MSVC.
Lasse Collin [Sun, 29 Apr 2012 08:51:25 +0000 (11:51 +0300)]
Windows: Update notes about static linking with MSVC.

12 years agoliblzma: Remove outdated comments.
Lasse Collin [Thu, 19 Apr 2012 12:25:26 +0000 (15:25 +0300)]
liblzma: Remove outdated comments.

12 years agoDOS: Link against DJGPP's libemu to support FPU emulation.
Lasse Collin [Thu, 19 Apr 2012 11:17:52 +0000 (14:17 +0300)]
DOS: Link against DJGPP's libemu to support FPU emulation.

This way xz should work on 386SX and 486SX. Floating point
only is needed for verbose output in xz.

12 years agoDocs: Update MINIX 3 information in INSTALL.
Lasse Collin [Thu, 19 Apr 2012 10:58:55 +0000 (13:58 +0300)]
Docs: Update MINIX 3 information in INSTALL.

12 years agoUpdate THANKS.
Lasse Collin [Wed, 22 Feb 2012 12:23:13 +0000 (14:23 +0200)]
Update THANKS.

12 years agoFix exit status of xzgrep when grepping binary files.
Lasse Collin [Wed, 22 Feb 2012 12:02:34 +0000 (14:02 +0200)]
Fix exit status of xzgrep when grepping binary files.

When grepping binary files, grep may exit before it has
read all the input. In this case, gzip -q returns 2 (eating
SIGPIPE), but xz and bzip2 show SIGPIPE as the exit status
(e.g. 141). This causes wrong exit status when grepping
xz- or bzip2-compressed binary files.

The fix checks for the special exit status that indicates SIGPIPE.
It uses kill -l which should be supported everywhere since it
is in both SUSv2 (1997) and POSIX.1-2008.

Thanks to James Buren for the bug report.

12 years agoUpdate THANKS.
Lasse Collin [Wed, 22 Feb 2012 10:08:43 +0000 (12:08 +0200)]
Update THANKS.

12 years agoFix compiling with IBM XL C on AIX.
Lasse Collin [Thu, 24 May 2012 15:47:52 +0000 (18:47 +0300)]
Fix compiling with IBM XL C on AIX.

12 years agoBuild: Upgrade m4/acx_pthread.m4 to the latest version.
Lasse Collin [Thu, 24 May 2012 15:37:08 +0000 (18:37 +0300)]
Build: Upgrade m4/acx_pthread.m4 to the latest version.

It was renamed to ax_pthread.m4 in Autoconf Archive.

12 years agoTests: Fix a compiler warning with _FORTIFY_SOURCE.
Lasse Collin [Tue, 10 Jan 2012 15:13:03 +0000 (17:13 +0200)]
Tests: Fix a compiler warning with _FORTIFY_SOURCE.

Reported here:
http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385

12 years agoDocs: Explain the stable releases better in README.
Lasse Collin [Mon, 19 Dec 2011 19:21:29 +0000 (21:21 +0200)]
Docs: Explain the stable releases better in README.

13 years agoxz: Fix a typo in a comment.
Lasse Collin [Fri, 4 Nov 2011 15:57:16 +0000 (17:57 +0200)]
xz: Fix a typo in a comment.

Thanks to Bela Lubkin.

13 years agoUpdate THANKS.
Lasse Collin [Thu, 3 Nov 2011 15:08:02 +0000 (17:08 +0200)]
Update THANKS.

13 years agoxz: Fix xz on EBCDIC systems.
Lasse Collin [Thu, 3 Nov 2011 15:07:22 +0000 (17:07 +0200)]
xz: Fix xz on EBCDIC systems.

Thanks to Chris Donawa.

13 years agoBuild: Fix "make check" on Windows.
Lasse Collin [Tue, 6 Sep 2011 09:03:41 +0000 (12:03 +0300)]
Build: Fix "make check" on Windows.

13 years agoUpdate THANKS.
Lasse Collin [Tue, 9 Aug 2011 18:19:13 +0000 (21:19 +0300)]
Update THANKS.

13 years agoWorkaround unusual SIZE_MAX on SCO OpenServer.
Lasse Collin [Tue, 9 Aug 2011 18:16:44 +0000 (21:16 +0300)]
Workaround unusual SIZE_MAX on SCO OpenServer.

13 years agoRun the scripts with the correct shell in test_scripts.sh.
Lasse Collin [Sat, 6 Aug 2011 17:37:28 +0000 (20:37 +0300)]
Run the scripts with the correct shell in test_scripts.sh.

The scripts are now made executable in the build tree.
This way the scripts can be run like programs in
test_scripts.sh. Previously test_scripts.sh always
used sh but it's not correct if @POSIX_SHELL@ is set
to something else by configure.

Thanks to Jonathan Nieder for the patch.

13 years agoFix exit status of "xzdiff foo.xz bar.xz".
Lasse Collin [Sun, 31 Jul 2011 08:01:47 +0000 (11:01 +0300)]
Fix exit status of "xzdiff foo.xz bar.xz".

xzdiff was clobbering the exit status from diff in a case
statement used to analyze the exit statuses from "xz" when
its operands were two compressed files. Save and restore
diff's exit status to fix this.

The bug is inherited from zdiff in GNU gzip and was fixed
there on 2009-10-09.

Thanks to Jonathan Nieder for the patch and
to Peter Pallinger for reporting the bug.

13 years agoadd build script for macosx universal
Anders F Bjorklund [Fri, 5 Nov 2010 11:56:11 +0000 (12:56 +0100)]
add build script for macosx universal

13 years agoliblzma: Remove unneeded semicolon.
Lasse Collin [Thu, 16 Jun 2011 09:15:29 +0000 (12:15 +0300)]
liblzma: Remove unneeded semicolon.

13 years agoDon't call close(-1) in tuklib_open_stdxxx() on error.
Lasse Collin [Sat, 28 May 2011 13:43:26 +0000 (16:43 +0300)]
Don't call close(-1) in tuklib_open_stdxxx() on error.

Thanks to Jim Meyering.

13 years agoTranslations: Update Italian translation.
Lasse Collin [Sat, 28 May 2011 06:47:56 +0000 (09:47 +0300)]
Translations: Update Italian translation.

Thanks to Milo Casagrande.

13 years agoTests: Add a test file for the bug in the previous commit.
Lasse Collin [Sat, 28 May 2011 05:46:04 +0000 (08:46 +0300)]
Tests: Add a test file for the bug in the previous commit.

13 years agoxz: Fix error handling in xz -lvv.
Lasse Collin [Fri, 27 May 2011 19:25:44 +0000 (22:25 +0300)]
xz: Fix error handling in xz -lvv.

It could do an invalid free() and read past the end
of the uninitialized filters array.

13 years agoliblzma: Handle allocation failures correctly in lzma_index_init().
Lasse Collin [Fri, 27 May 2011 19:09:49 +0000 (22:09 +0300)]
liblzma: Handle allocation failures correctly in lzma_index_init().

Thanks to Jim Meyering.

13 years agoBuild: Set GZIP_ENV=-9n in top-level Makefile.am.
Lasse Collin [Mon, 23 May 2011 15:30:30 +0000 (18:30 +0300)]
Build: Set GZIP_ENV=-9n in top-level Makefile.am.

13 years agoBump version and soname for 5.0.3. v5.0.3
Lasse Collin [Sat, 21 May 2011 13:59:22 +0000 (16:59 +0300)]
Bump version and soname for 5.0.3.

13 years agoUpdate NEWS for 5.0.3.
Lasse Collin [Sat, 21 May 2011 13:56:53 +0000 (16:56 +0300)]
Update NEWS for 5.0.3.

13 years agoAdd French translation.
Lasse Collin [Sat, 21 May 2011 13:28:44 +0000 (16:28 +0300)]
Add French translation.

It is known that the BCJ filter --help text is only
partially translated.

13 years agoxz: Translate also the string used to print the program name.
Lasse Collin [Sat, 21 May 2011 12:12:10 +0000 (15:12 +0300)]
xz: Translate also the string used to print the program name.

French needs a space before a colon, e.g. "xz : foo error".

13 years agoUpdate THANKS.
Lasse Collin [Tue, 17 May 2011 09:26:28 +0000 (12:26 +0300)]
Update THANKS.

13 years agoUpdate INSTALL with a note about linker problem on OpenSolaris x86.
Lasse Collin [Tue, 17 May 2011 09:21:33 +0000 (12:21 +0300)]
Update INSTALL with a note about linker problem on OpenSolaris x86.

13 years agoBuild: Fix initialization of enable_check_* variables in configure.ac.
Lasse Collin [Tue, 17 May 2011 09:01:37 +0000 (12:01 +0300)]
Build: Fix initialization of enable_check_* variables in configure.ac.

This doesn't matter much in practice since it is unlikely
that anyone would have such environment variable names.

Thanks to Wim Lewis.

13 years agoAdd underscores to attributes (__attribute((__foo__))).
Lasse Collin [Tue, 17 May 2011 08:54:38 +0000 (11:54 +0300)]
Add underscores to attributes (__attribute((__foo__))).

13 years agoUpdate THANKS.
Lasse Collin [Mon, 18 Apr 2011 16:35:49 +0000 (19:35 +0300)]
Update THANKS.

13 years agoxzgrep: fix typo in $0 parsing
Martin Väth [Fri, 15 Apr 2011 08:54:49 +0000 (04:54 -0400)]
xzgrep: fix typo in $0 parsing

Reported-by: Diego Elio Pettenò <flameeyes@gentoo.org>
Signed-off-by: Martin Väth <vaeth@mathematik.uni-wuerzburg.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agoRemove doubled words from documentation and comments.
Lasse Collin [Tue, 12 Apr 2011 08:59:49 +0000 (11:59 +0300)]
Remove doubled words from documentation and comments.

Spot candidates by running these commands:
  git ls-files |xargs perl -0777 -n \
    -e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \
    -e '{$n=($` =~ tr/\n/\n/ + 1); ($v=$&)=~s/\n/\\n/g; print "$ARGV:$n:$v\n"}'

Thanks to Jim Meyering for the original patch.

13 years agoliblzma: Document lzma_easy_(enc|dec)oder_memusage() better too.
Lasse Collin [Mon, 11 Apr 2011 18:04:13 +0000 (21:04 +0300)]
liblzma: Document lzma_easy_(enc|dec)oder_memusage() better too.

13 years agoliblzma: Document lzma_raw_(enc|dec)oder_memusage() better.
Lasse Collin [Mon, 11 Apr 2011 17:59:07 +0000 (20:59 +0300)]
liblzma: Document lzma_raw_(enc|dec)oder_memusage() better.

It didn't mention the return value that is used if
an error occurs.

13 years agoliblzma: Don't create an empty Block in lzma_stream_buffer_encode().
Lasse Collin [Mon, 11 Apr 2011 10:59:50 +0000 (13:59 +0300)]
liblzma: Don't create an empty Block in lzma_stream_buffer_encode().

Empty Block was created if the input buffer was empty.
Empty Block wastes a few bytes of space, but more importantly
it triggers a bug in XZ Utils 5.0.1 and older when trying
to decompress such a file. 5.0.1 and older consider such
files to be corrupt. I thought that no encoder creates empty
Blocks when releasing 5.0.2 but I was wrong.

13 years agoliblzma: Fix API docs to mention LZMA_UNSUPPORTED_CHECK.
Lasse Collin [Mon, 11 Apr 2011 10:28:40 +0000 (13:28 +0300)]
liblzma: Fix API docs to mention LZMA_UNSUPPORTED_CHECK.

This return value was missing from the API comments of
four functions.

13 years agoliblzma: Validate encoder arguments better.
Lasse Collin [Mon, 11 Apr 2011 10:21:28 +0000 (13:21 +0300)]
liblzma: Validate encoder arguments better.

The biggest problem was that the integrity check type
wasn't validated, and e.g. lzma_easy_buffer_encode()
would create a corrupt .xz Stream if given an unsupported
Check ID. Luckily applications don't usually try to use
an unsupport Check ID, so this bug is unlikely to cause
many real-world problems.

13 years agoUpdate THANKS.
Lasse Collin [Sat, 9 Apr 2011 15:29:30 +0000 (18:29 +0300)]
Update THANKS.

13 years agoliblzma: Add missing #ifdefs to filter_common.c.
Lasse Collin [Sat, 9 Apr 2011 15:28:58 +0000 (18:28 +0300)]
liblzma: Add missing #ifdefs to filter_common.c.

Passing --disable-decoders to configure broke a few
encoders due to missing #ifdefs in filter_common.c.

Thanks to Jason Gorski for the patch.

13 years agoliblzma: Fix a memory leak in stream_encoder.c.
Lasse Collin [Sat, 2 Apr 2011 11:49:56 +0000 (14:49 +0300)]
liblzma: Fix a memory leak in stream_encoder.c.

It leaks old filter options structures (hundred bytes or so)
every time the lzma_stream is reinitialized. With the xz tool,
this happens when compressing multiple files.

13 years agoBumped version and liblzma soname to 5.0.2. v5.0.2
Lasse Collin [Fri, 1 Apr 2011 05:47:46 +0000 (08:47 +0300)]
Bumped version and liblzma soname to 5.0.2.

13 years agoUpdated NEWS for 5.0.2.
Lasse Collin [Fri, 1 Apr 2011 05:47:20 +0000 (08:47 +0300)]
Updated NEWS for 5.0.2.

13 years agoUpdate INSTALL with another note about IRIX.
Lasse Collin [Thu, 31 Mar 2011 12:06:58 +0000 (15:06 +0300)]
Update INSTALL with another note about IRIX.

13 years agoTests: Add a new file to test empty LZMA2 streams.
Lasse Collin [Thu, 31 Mar 2011 09:22:55 +0000 (12:22 +0300)]
Tests: Add a new file to test empty LZMA2 streams.

13 years agoliblzma: Fix decoding of LZMA2 streams having no uncompressed data.
Lasse Collin [Thu, 31 Mar 2011 08:54:48 +0000 (11:54 +0300)]
liblzma: Fix decoding of LZMA2 streams having no uncompressed data.

The decoder considered empty LZMA2 streams to be corrupt.
This shouldn't matter much with .xz files, because no encoder
creates empty LZMA2 streams in .xz. This bug is more likely
to cause problems in applications that use raw LZMA2 streams.

13 years agoScripts: Better fix for xzgrep.
Lasse Collin [Wed, 23 Mar 2011 23:42:49 +0000 (01:42 +0200)]
Scripts: Better fix for xzgrep.

Now it uses "grep -q".

Thanks to Gregory Margo.

13 years agoUpdated THANKS.
Lasse Collin [Wed, 23 Mar 2011 23:22:18 +0000 (01:22 +0200)]
Updated THANKS.

13 years agoScripts: Fix xzgrep -l.
Lasse Collin [Wed, 23 Mar 2011 23:21:32 +0000 (01:21 +0200)]
Scripts: Fix xzgrep -l.

It didn't work at all. It tried to use the -q option
for grep, but it appended it after "--". This works
around it by redirecting to /dev/null. The downside
is that this can be slower with big files compared
to proper use of "grep -q".

Thanks to Gregory Margo.

13 years agoxz: Clean up suffix.c.
Lasse Collin [Fri, 4 Feb 2011 20:49:31 +0000 (22:49 +0200)]
xz: Clean up suffix.c.

struct suffix_pair isn't needed in compresed_name()
so get rid of it there.

13 years agoxz: Check if the file already has custom suffix when compressing.
Lasse Collin [Fri, 4 Feb 2011 09:29:47 +0000 (11:29 +0200)]
xz: Check if the file already has custom suffix when compressing.

Now "xz -S .test foo.test" refuses to compress the
file because it already has the suffix .test. The man
page had it documented this way already.

13 years agoUpdated THANKS.
Lasse Collin [Wed, 2 Feb 2011 21:01:51 +0000 (23:01 +0200)]
Updated THANKS.

13 years agoTranslations: Add Polish translation.
Lasse Collin [Wed, 2 Feb 2011 21:00:33 +0000 (23:00 +0200)]
Translations: Add Polish translation.

Thanks to Jakub Bogusz.

13 years agoUpdated THANKS.
Lasse Collin [Wed, 2 Feb 2011 20:24:00 +0000 (22:24 +0200)]
Updated THANKS.

13 years agoBump package version and liblzma soname to 5.0.1. v5.0.1
Lasse Collin [Fri, 28 Jan 2011 18:26:38 +0000 (20:26 +0200)]
Bump package version and liblzma soname to 5.0.1.

13 years agoUpdate NEWS for 5.0.1.
Lasse Collin [Fri, 28 Jan 2011 18:16:57 +0000 (20:16 +0200)]
Update NEWS for 5.0.1.

13 years agoxz: Fix --force on setuid/setgid/sticky and multi-hardlink files.
Lasse Collin [Wed, 26 Jan 2011 10:19:08 +0000 (12:19 +0200)]
xz: Fix --force on setuid/setgid/sticky and multi-hardlink files.

xz didn't compress setuid/setgid/sticky files and files
with multiple hard links even with --force. This bug was
introduced in 23ac2c44c3ac76994825adb7f9a8f719f78b5ee4.

Thanks to Charles Wilson.

13 years agoUpdated THANKS.
Lasse Collin [Tue, 18 Jan 2011 19:25:24 +0000 (21:25 +0200)]
Updated THANKS.

13 years agoAdd alloc_size and malloc attributes to a few functions.
Lasse Collin [Tue, 18 Jan 2011 19:23:50 +0000 (21:23 +0200)]
Add alloc_size and malloc attributes to a few functions.

Thanks to Cristian Rodríguez for the original patch.

14 years agoScripts: Fix gzip and bzip2 support in xzdiff.
Lasse Collin [Mon, 13 Dec 2010 14:36:33 +0000 (16:36 +0200)]
Scripts: Fix gzip and bzip2 support in xzdiff.

14 years agoBuild: Enable ASM on DJGPP by default.
Lasse Collin [Sun, 12 Dec 2010 19:23:55 +0000 (21:23 +0200)]
Build: Enable ASM on DJGPP by default.

14 years agoUpdated THANKS.
Lasse Collin [Sun, 12 Dec 2010 14:09:42 +0000 (16:09 +0200)]
Updated THANKS.

14 years agoAdd missing PRIx32 and PRIx64 compatibility definitions.
Lasse Collin [Sun, 12 Dec 2010 14:07:11 +0000 (16:07 +0200)]
Add missing PRIx32 and PRIx64 compatibility definitions.

This fixes portability to systems that lack C99 inttypes.h.

Thanks to Juan Manuel Guerrero.

14 years agoDOS-like: Treat \ and : as directory separators in addition to /.
Lasse Collin [Sun, 12 Dec 2010 12:50:04 +0000 (14:50 +0200)]
DOS-like: Treat \ and : as directory separators in addition to /.

Juan Manuel Guerrero had fixed this in his XZ Utils port
to DOS/DJGPP. The bug affects also Windows and OS/2.

14 years agoTranslations: Fix Czech translation of "sparse file".
Lasse Collin [Tue, 7 Dec 2010 16:52:04 +0000 (18:52 +0200)]
Translations: Fix Czech translation of "sparse file".

Thanks to Petr Hubený and Marek Černocký.

14 years agoliblzma: Document the return value of lzma_lzma_preset().
Lasse Collin [Mon, 15 Nov 2010 12:28:26 +0000 (14:28 +0200)]
liblzma: Document the return value of lzma_lzma_preset().

14 years agoSimplify paths in generated API docs
Jonathan Nieder [Fri, 12 Nov 2010 21:22:13 +0000 (15:22 -0600)]
Simplify paths in generated API docs

Currently the file list generated by Doxygen has src/ at the
beginning of each path.  Paths like common/sysdefs.h and
liblzma/api/lzma.h are easier to read without such a prefix.

Builds from a separate build directory with

mkdir build
cd build
../configure
doxygen Doxyfile

include an even longer prefix /home/someone/src/xz/src; this
patch has the nice side-effect of eliminating that prefix, too.

Fixes: http://bugs.debian.org/572273
14 years agoBuild: Copy the example programs to $docdir/examples.
Lasse Collin [Tue, 26 Oct 2010 12:48:48 +0000 (15:48 +0300)]
Build: Copy the example programs to $docdir/examples.

The example programs by Daniel Mealha Cabrita were included
in the git repository, but I had forgot to add them to
Makefile.am. Thus, they didn't get included in the source
package at all by "make dist".

14 years agoBuild: Fix mydist rule when .git doesn't exist. v5.0.0
Lasse Collin [Sat, 23 Oct 2010 14:25:52 +0000 (17:25 +0300)]
Build: Fix mydist rule when .git doesn't exist.

14 years agoAdd NEWS for 5.0.0.
Lasse Collin [Sat, 23 Oct 2010 11:15:35 +0000 (14:15 +0300)]
Add NEWS for 5.0.0.

14 years agoBump version to 5.0.0 and liblzma version-info to 5:0:0.
Lasse Collin [Sat, 23 Oct 2010 11:02:53 +0000 (14:02 +0300)]
Bump version to 5.0.0 and liblzma version-info to 5:0:0.

14 years agoliblzma: Make lzma_code() check the reserved members in lzma_stream.
Lasse Collin [Sat, 23 Oct 2010 09:30:54 +0000 (12:30 +0300)]
liblzma: Make lzma_code() check the reserved members in lzma_stream.

If any of the reserved members in lzma_stream are non-zero
or non-NULL, LZMA_OPTIONS_ERROR is returned. It is possible
that a new feature in the future is indicated by just setting
a reserved member to some other value, so the old liblzma
version need to catch it as an unsupported feature.

14 years agoWindows: Use MinGW's stdio functions.
Lasse Collin [Sat, 23 Oct 2010 09:26:33 +0000 (12:26 +0300)]
Windows: Use MinGW's stdio functions.

The non-standard ones from msvcrt.dll appear to work
most of the time with XZ Utils, but there are some
corner cases where things may go very wrong. So it's
good to use the better replacements provided by
MinGW(-w64) runtime.

14 years agoliblzma: Use 512 as INDEX_GROUP_SIZE.
Lasse Collin [Sat, 23 Oct 2010 09:21:32 +0000 (12:21 +0300)]
liblzma: Use 512 as INDEX_GROUP_SIZE.

This lets compiler use shifting instead of 64-bit division.

14 years agoliblzma: A few ABI tweaks to reserve space in structures.
Lasse Collin [Sat, 23 Oct 2010 09:20:11 +0000 (12:20 +0300)]
liblzma: A few ABI tweaks to reserve space in structures.

14 years agoxz: Make sure that message_strm() can never return NULL.
Lasse Collin [Thu, 21 Oct 2010 20:16:11 +0000 (23:16 +0300)]
xz: Make sure that message_strm() can never return NULL.

14 years agoliblzma: Update the comments in the API headers.
Lasse Collin [Thu, 21 Oct 2010 20:06:31 +0000 (23:06 +0300)]
liblzma: Update the comments in the API headers.

Adding support for LZMA_FINISH for Index encoding and
decoding needed tiny additions to the relevant .c files too.

14 years agoUpdate INSTALL.generic.
Lasse Collin [Tue, 19 Oct 2010 09:08:30 +0000 (12:08 +0300)]
Update INSTALL.generic.

14 years agoClean up a few FIXMEs and TODOs.
Lasse Collin [Tue, 19 Oct 2010 08:44:37 +0000 (11:44 +0300)]
Clean up a few FIXMEs and TODOs.

lzma_chunk_size() was commented out because it is
currently useless.