aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-12-21po/fr: improve wording for help for --lzma1/--lzma2.larhzu/v5.0.8larhzu/v5.0Adrien Nader1-1/+1
2014-12-21po/fr: missing line in translation of --extreme.Adrien Nader1-0/+1
2014-12-21xz: Fix a comment.Lasse Collin1-2/+2
2014-12-21Bump version and soname for 5.0.8.Lasse Collin2-2/+2
2014-12-21Update NEWS for 5.0.8.Lasse Collin1-0/+12
2014-12-20Translations: Update the French translation.Lasse Collin1-116/+93
Thanks to Adrien Nader.
2014-12-18Update THANKS.Lasse Collin1-0/+1
2014-12-18Update INSTALL about a "make check" failure in test_scripts.sh.Lasse Collin1-7/+17
2014-12-18Build: Update m4/ax_pthread.m4 from Autoconf Archive.Lasse Collin1-24/+47
2014-12-18Build: Replace obsolete AC_HELP_STRING with AS_HELP_STRING.Lasse Collin1-17/+17
2014-12-18Build: Fix Autoconf warnings about escaped backquotes.Lasse Collin1-3/+3
2014-12-17Update THANKS.Lasse Collin1-0/+1
2014-12-17Add support for AmigaOS/AROS to tuklib_physmem().Lasse Collin2-1/+9
Thanks to Fredrik Wikstrom.
2014-12-17xzgrep: Avoid passing both -q and -l to grep.Lasse Collin1-2/+4
The behavior of grep -ql varies: - GNU grep behaves like grep -q. - OpenBSD grep behaves like grep -l. POSIX doesn't make it 100 % clear what behavior is expected. Anyway, using both -q and -l at the same time makes no sense so both options simply should never be used at the same time. Thanks to Christian Weisgerber.
2014-12-17Build: Detect supported compiler warning flags better.Lasse Collin1-2/+3
Clang and nowadays also GCC accept any -Wfoobar option but then may give a warning that an unknown warning option was specified. To avoid adding unsupported warning options, the options are now tested with -Werror. Thanks to Charles Diza.
2014-10-18l10n: de.po: Change translator email address.Andre Noll1-4/+3
Although the old address is still working, the new one should be preferred. So this commit changes all three places in de.po accordingly. Signed-off-by: Andre Noll <maan@tuebingen.mpg.de>
2014-10-18l10n: de.po: Fix typo: Schießen -> Schließen.Andre Noll1-1/+1
That's a funny one since "schießen" means to shoot :) Signed-off-by: Andre Noll <maan@systemlinux.org>
2014-09-20Bump version and soname for 5.0.7.larhzu/v5.0.7Lasse Collin2-2/+2
2014-09-20Update NEWS for 5.0.7.Lasse Collin1-0/+11
2014-09-20liblzma: Fix invalid Libs.private value in liblzma.pc.Lasse Collin1-1/+1
2014-09-20liblzma: Fix a portability problem in Makefile.am.Lasse Collin1-1/+1
POSIX supports $< only in inference rules (suffix rules). Using it elsewhere is a GNU make extension and doesn't work e.g. with OpenBSD make. Thanks to Christian Weisgerber for the patch.
2014-09-14Bump version and soname for 5.0.6.larhzu/v5.0.6Lasse Collin2-2/+2
2014-09-14Update NEWS for 5.0.6.Lasse Collin1-0/+7
2014-09-09xzgrep: List xzgrep_expected_output in tests/Makefile.am.Lasse Collin1-1/+2
2014-09-09xzgrep: Improve the test script.Lasse Collin3-11/+55
Now it should be close to the functionality of the original version by Pavel Raiskup.
2014-09-09xzgrep: Add a test for the previous fix.Lasse Collin1-4/+22
This is a simplified version of Pavel Raiskup's original patch.
2014-09-09xzgrep: exit 0 when at least one file matches.Lasse Collin1-2/+13
Mimic the original grep behavior and return exit_success when at least one xz compressed file matches given pattern. Original bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=1108085 Thanks to Pavel Raiskup for the patch.
2014-04-26Build: Fix the combination of --disable-xzdec --enable-lzmadec.Lasse Collin1-1/+9
In this case "make install" could fail if the man page directory didn't already exist at the destination. If it did exist, a dangling symlink was created there. Now the link is omitted instead. This isn't the best fix but it's better than the old behavior.
2014-04-26Build: Add --disable-doc to configure.Lasse Collin3-0/+14
2014-04-26Update INSTALL.Lasse Collin1-0/+25
Add a note about failing "make check". The source of the problem should be fixed in libtool (if it really is a libtool bug and not mine) but I'm unable to spend time on that for now. Thanks to Nelson H. F. Beebe for reporting the issue. Add a note about a possible need to run "ldconfig" after "make install".
2014-04-26xz: Rename a variable to avoid a namespace collision on Solaris.Lasse Collin1-5/+7
I don't know the details but I have an impression that there's no problem in practice if using GCC since people have built xz with GCC (without patching xz), but renaming the variable cannot hurt either. Thanks to Mark Ashley.
2014-04-26xz: Fix a comment.Lasse Collin1-2/+2
2014-04-26liblzma: Avoid C99 compound literal arrays.Lasse Collin1-3/+5
MSVC 2013 doesn't like them. Maybe they aren't so good for readability either since many aren't used to them.
2014-04-26liblzma: Remove a useless C99ism from sha256.c.Lasse Collin1-1/+1
Unsurprisingly it makes no difference in compiled output.
2014-04-26xz: Fix use of wrong variable.Lasse Collin1-1/+1
Since the only call to suffix_set() uses optarg as the argument, fixing this bug doesn't change the behavior of the program.
2014-04-26Fix typos in comments.Lasse Collin1-1/+1
2014-04-26Update THANKS.Lasse Collin1-0/+1
2014-04-26liblzma: Document the need for block->check for lzma_block_header_decode().Lasse Collin1-0/+3
Thanks to Tomer Chachamu.
2014-04-26Update TODO.Lasse Collin1-4/+0
2014-04-26Build: Remove a comment about Automake 1.10 from configure.ac.Lasse Collin1-2/+0
The previous commit supports silent rules and that requires Automake 1.11.
2014-04-26Build: Create liblzma.pc in a src/liblzma/Makefile.am.Lasse Collin2-1/+20
Previously it was done in configure, but doing that goes against the Autoconf manual. Autoconf requires that it is possible to override e.g. prefix after running configure and that doesn't work correctly if liblzma.pc is created by configure. A potential downside of this change is that now e.g. libdir in liblzma.pc is a standalone string instead of being defined via ${prefix}, so if one overrides prefix when running pkg-config the libdir won't get the new value. I don't know if this matters in practice. Thanks to Vincent Torri.
2013-08-03macosx: separate liblzma packageAnders F Bjorklund1-8/+15
2013-08-03macosx: set minimum to leopardAnders F Bjorklund1-5/+8
2013-08-03move configurables into variablesAnders F Bjorklund1-7/+18
2013-08-03Build: Fix the detection of missing CRC32.Lasse Collin1-1/+1
Thanks to Vincent Torri.
2013-06-30Man pages: Use similar syntax for synopsis as in xz.larhzu/v5.0.5Lasse Collin3-10/+10
The man pages of lzmainfo, xzmore, and xzdec had similar constructs as the man page of xz had before the commit eb6ca9854b8eb9fbf72497c1cf608d6b19d2d494. Eric S. Raymond didn't mention these man pages in his bug report, but it's nice to be consistent.
2013-06-30Update NEWS for 5.0.5.Lasse Collin1-0/+52
2013-06-30Bump version and soname for 5.0.5.Lasse Collin2-2/+2
2013-06-28xz: Fix return value type in io_write_buf().Lasse Collin1-1/+1
It didn't affect the behavior of the code since -1 becomes true anyway.
2013-06-28xz: Remove an outdated NetBSD-specific comment.Lasse Collin1-4/+0
Nowadays errno == EFTYPE is documented in open(2).
2013-06-28xz: Fix error detection of fcntl(fd, F_SETFL, flags) calls.Lasse Collin1-4/+4
POSIX says that fcntl(fd, F_SETFL, flags) returns -1 on error and "other than -1" on success. This is how it is documented e.g. on OpenBSD too. On Linux, success with F_SETFL is always 0 (at least accorinding to fcntl(2) from man-pages 3.51).
2013-06-28xz: Fix use of wrong variable in a fcntl() call.Lasse Collin1-11/+13
Due to a wrong variable name, when writing a sparse file to standard output, *all* file status flags were cleared (to the extent the operating system allowed it) instead of only clearing the O_APPEND flag. In practice this worked fine in the common situations on GNU/Linux, but I didn't check how it behaved elsewhere. The original flags were still restored correctly. I still changed the code to use a separate boolean variable to indicate when the flags should be restored instead of relying on a special value in stdout_flags.
2013-06-26xz: Check the value of lzma_stream_flags.version in --list.Lasse Collin1-0/+14
It is a no-op for now, but if an old xz version is used together with a newer liblzma that supports something new, then this check becomes important and will stop the old xz from trying to parse files that it won't understand.
2013-06-26Build: Require Automake 1.12 and use serial-tests option.Lasse Collin1-1/+3
It should actually still work with Automake 1.10 if the serial-tests option is removed. Automake 1.13 started using parallel tests by default and the option to get the old behavior isn't supported before 1.12. At least for now, parallel tests don't improve anything in XZ Utils but they hide the progress output from test_compress.sh.
2013-06-26xz: Validate Uncompressed Size from Block Header in list.c.Lasse Collin1-1/+13
This affects only "xz -lvv". Normal decompression with xz already detected if Block Header and Index had mismatched Uncompressed Size fields. So this just makes "xz -lvv" show such files as corrupt instead of showing the Uncompressed Size from Index.
2013-06-26Update THANKS.Lasse Collin1-0/+2
2013-06-26xz: Make the man page more friendly to doclifter.Lasse Collin1-3/+4
Thanks to Eric S. Raymond.
2013-06-26xz: A couple of man page fixes.Lasse Collin1-12/+23
Now the interaction of presets and custom filter chains is described correctly. Earlier it contradicted itself. Thanks to DevHC who reported these issues on IRC to me on 2012-12-14.
2013-06-26xz: Fix interaction between preset and custom filter chains.Lasse Collin1-14/+21
There was somewhat illogical behavior when --extreme was specified and mixed with custom filter chains. Before this commit, "xz -9 --lzma2 -e" was equivalent to "xz --lzma2". After it is equivalent to "xz -6e" (all earlier preset options get forgotten when a custom filter chain is specified and the default preset is 6 to which -e is applied). I find this less illogical. This also affects the meaning of "xz -9e --lzma2 -7". Earlier it was equivalent to "xz -7e" (the -e specified before a custom filter chain wasn't forgotten). Now it is "xz -7". Note that "xz -7e" still is the same as "xz -e7". Hopefully very few cared about this in the first place, so pretty much no one should even notice this change. Thanks to Conley Moorhous.
2013-06-26xz: Change size_t to uint32_t in a few places.Lasse Collin2-4/+4
2013-06-26Build: Use -Wvla with GCC if supported.Lasse Collin1-0/+1
Variable-length arrays are mandatory in C99 but optional in C11. The code doesn't currently use any VLAs and it shouldn't in the future either to stay compatible with C11 without requiring any optional C11 features.
2013-06-26xzdec: Improve the --help message.Lasse Collin1-5/+5
The options are now ordered in the same order as in xz's help message. Descriptions were added to the options that are ignored. I left them in parenthesis even if it looks a bit weird because I find it easier to spot the ignored vs. non-ignored options from the list that way.
2013-04-05Update THANKS.Lasse Collin1-0/+2
2013-04-05xzgrep: make the '-h' option to be --no-filename equivalentJeff Bastian1-1/+1
* src/scripts/xzgrep.in: Accept the '-h' option in argument parsing.
2013-04-05liblzma: Be less picky in lzma_alone_decoder().Lasse Collin3-11/+18
To avoid false positives when detecting .lzma files, rare values in dictionary size and uncompressed size fields were rejected. They will still be rejected if .lzma files are decoded with lzma_auto_decoder(), but when using lzma_alone_decoder() directly, such files will now be accepted. Hopefully this is an OK compromise. This doesn't affect xz because xz still has its own file format detection code. This does affect lzmadec though. So after this commit lzmadec will accept files that xz or xz-emulating-lzma doesn't. NOTE: lzma_alone_decoder() still won't decode all .lzma files because liblzma's LZMA decoder doesn't support lc + lp > 4. Reported here: http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/7068827 Conflicts: src/liblzma/common/alone_decoder.c src/liblzma/common/alone_decoder.h
2013-04-05Avoid unneeded use of awk in xzless.Lasse Collin1-2/+1
Use "read" instead of "awk" in xzless to get the version number of "less". The need for awk was introduced in the commit db5c1817fabf7cbb9e4087b1576eb26f0747338e. Thanks to Ariel P for the patch.
2012-12-15xzless: Make "less -V" parsing more robustJonathan Nieder1-1/+2
In v4.999.9beta~30 (xzless: Support compressed standard input, 2009-08-09), xzless learned to parse ‘less -V’ output to figure out whether less is new enough to handle $LESSOPEN settings starting with “|-”. That worked well for a while, but the version string from ‘less’ versions 448 (June, 2012) is misparsed, producing a warning: $ xzless /tmp/test.xz; echo $? /usr/bin/xzless: line 49: test: 456 (GNU regular expressions): \ integer expression expected 0 More precisely, modern ‘less’ lists the regexp implementation along with its version number, and xzless passes the entire version number with attached parenthetical phrase as a number to "test $a -gt $b", producing the above confusing message. $ less-444 -V | head -1 less 444 $ less -V | head -1 less 456 (no regular expressions) So relax the pattern matched --- instead of expecting "less <number>", look for a line of the form "less <number>[ (extra parenthetical)]". While at it, improve the behavior when no matching line is found --- instead of producing a cryptic message, we can fall back on a LESSPIPE setting that is supported by all versions of ‘less’. The implementation uses "awk" for simplicity. Hopefully that’s portable enough. Reported-by: Jörg-Volker Peetz <jvpeetz@web.de> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2012-12-15xz: Fix the note about --rsyncable on the man page.Lasse Collin1-8/+9
2012-12-15xz: Improve handling of failed realloc in xrealloc.Lasse Collin1-2/+12
Thanks to Jim Meyering.
2012-12-15A few typo fixes to comments and the xz man page.Lasse Collin3-4/+3
Thanks to Jim Meyering.
2012-08-02Build: Bump gettext version requirement to 0.18.Lasse Collin1-1/+1
Otherwise too old version of m4/lib-link.m4 gets included when autoreconf -fi is run.
2012-07-05Tests: Remove tests/test_block.c that had gotten committed accidentally.Lasse Collin1-52/+0
2012-07-05Build: Include macosx/build.sh in the distribution.Lasse Collin1-0/+1
It has been in the Git repository since 2010 but probably few people have seen it since it hasn't been included in the release tarballs. :-(
2012-07-05Docs: Fix the name LZMA Utils -> XZ Utils in debug/README.Lasse Collin1-1/+1
2012-07-05Include debug/translation.bash in the distribution.Lasse Collin2-2/+5
Also fix the script name mentioned in README.
2012-06-22xz: Update man page date to match the latest update.larhzu/v5.0.4Lasse Collin1-1/+1
2012-06-22Bump version and soname for 5.0.4.Lasse Collin2-2/+2
2012-06-22Update NEWS for 5.0.4.Lasse Collin1-6/+19
2012-06-22Docs: Language fix to 01_compress_easy.c.Lasse Collin1-1/+1
Thanks to Jonathan Nieder.
2012-06-22Fix the top-level Makefile.am for the new example programs.Lasse Collin1-2/+10
2012-06-22Docs: Add new example programs.Lasse Collin5-0/+827
These have more comments than the old examples and human-readable error messages. More tutorial-like examples are needed but these are a start.
2012-06-22Docs: Move xz_pipe_comp.c and xz_pipe_decomp.c to doc/examples_old.Lasse Collin2-0/+0
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.
2012-06-22Docs: Fix a bug in xz_pipe_decomp.c example program.Lasse Collin1-1/+9
2012-05-31Translations: Update the Italian translation.Lasse Collin1-165/+146
Thanks to Milo Casagrande.
2012-05-30Translations: Update the French translation.Lasse Collin1-119/+118
Thanks to Adrien Nader.
2012-05-29Translations: Update the German translation.Lasse Collin1-78/+91
2012-05-29Translations: Update Polish translation.Lasse Collin1-68/+82
2012-05-29Preliminary NEWS for 5.0.4.Lasse Collin1-0/+24
2012-05-29liblzma: Fix possibility of incorrect LZMA_BUF_ERROR.Lasse Collin3-2/+116
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.
2012-05-29Update THANKS.Lasse Collin1-0/+1
2012-05-29xz: Don't show a huge number in -vv when memory limit is disabled.Lasse Collin1-1/+11
2012-05-29xz: Document the "summary" lines of --robot -lvv.Lasse Collin1-0/+19
This documents only the columns that are in v5.0. The new columns added in the master branch aren't necessarily stable yet.
2012-05-29xz: Fix output of verbose --robot --list modes.Lasse Collin1-1/+1
It printed the filename in "filename (x/y)" format which it obviously shouldn't do in robot mode.
2012-05-24Update THANKS.Lasse Collin1-0/+1
2012-05-24Docs: Cleanup line wrapping a bit.Lasse Collin2-30/+31
2012-05-24Fix a few typos and add some missing articles in some documents.Benno Schulenberg4-65/+65
Also hyphenate several compound adjectives. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2012-05-24Windows: Update notes about static linking with MSVC.Lasse Collin1-4/+9
2012-05-24liblzma: Remove outdated comments.Lasse Collin2-5/+1
2012-05-24DOS: Link against DJGPP's libemu to support FPU emulation.Lasse Collin1-1/+1
This way xz should work on 386SX and 486SX. Floating point only is needed for verbose output in xz.
2012-05-24Docs: Update MINIX 3 information in INSTALL.Lasse Collin1-3/+5
2012-05-24Update THANKS.Lasse Collin1-0/+1
2012-05-24Fix exit status of xzgrep when grepping binary files.Lasse Collin1-1/+2
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.
2012-05-24Update THANKS.Lasse Collin1-0/+1
2012-05-24Fix compiling with IBM XL C on AIX.Lasse Collin2-15/+27
2012-05-24Build: Upgrade m4/acx_pthread.m4 to the latest version.Lasse Collin2-102/+132
It was renamed to ax_pthread.m4 in Autoconf Archive.
2012-05-24Tests: Fix a compiler warning with _FORTIFY_SOURCE.Lasse Collin1-1/+2
Reported here: http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/4927385
2012-05-24Docs: Explain the stable releases better in README.Lasse Collin1-1/+5
2011-11-04xz: Fix a typo in a comment.Lasse Collin1-1/+1
Thanks to Bela Lubkin.
2011-11-03Update THANKS.Lasse Collin1-0/+1
2011-11-03xz: Fix xz on EBCDIC systems.Lasse Collin1-1/+4
Thanks to Chris Donawa.
2011-09-06Build: Fix "make check" on Windows.Lasse Collin2-2/+7
2011-09-05Update THANKS.Lasse Collin1-0/+2
2011-09-05Workaround unusual SIZE_MAX on SCO OpenServer.Lasse Collin1-3/+6
2011-09-05Run the scripts with the correct shell in test_scripts.sh.Lasse Collin2-8/+8
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.
2011-09-05Fix exit status of "xzdiff foo.xz bar.xz".Lasse Collin3-1/+59
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.
2011-07-07add build script for macosx universalAnders F Bjorklund1-0/+92
2011-06-16liblzma: Remove unneeded semicolon.Lasse Collin1-1/+1
2011-05-28Don't call close(-1) in tuklib_open_stdxxx() on error.Lasse Collin1-1/+3
Thanks to Jim Meyering.
2011-05-28Translations: Update Italian translation.Lasse Collin1-149/+184
Thanks to Milo Casagrande.
2011-05-28Tests: Add a test file for the bug in the previous commit.Lasse Collin2-0/+4
2011-05-28xz: Fix error handling in xz -lvv.Lasse Collin1-15/+6
It could do an invalid free() and read past the end of the uninitialized filters array.
2011-05-28liblzma: Handle allocation failures correctly in lzma_index_init().Lasse Collin1-2/+5
Thanks to Jim Meyering.
2011-05-23Build: Set GZIP_ENV=-9n in top-level Makefile.am.Lasse Collin1-0/+3
2011-05-21Bump version and soname for 5.0.3.larhzu/v5.0.3Lasse Collin2-2/+2
2011-05-21Update NEWS for 5.0.3.Lasse Collin1-2/+34
2011-05-21Add French translation.Lasse Collin2-0/+865
It is known that the BCJ filter --help text is only partially translated.
2011-05-21xz: Translate also the string used to print the program name.Lasse Collin1-1/+5
French needs a space before a colon, e.g. "xz : foo error".
2011-05-17Update THANKS.Lasse Collin1-0/+3
2011-05-17Update INSTALL with a note about linker problem on OpenSolaris x86.Lasse Collin1-6/+17
2011-05-17Build: Fix initialization of enable_check_* variables in configure.ac.Lasse Collin1-1/+1
This doesn't matter much in practice since it is unlikely that anyone would have such environment variable names. Thanks to Wim Lewis.
2011-05-17Add underscores to attributes (__attribute((__foo__))).Lasse Collin25-47/+49
2011-04-18Update THANKS.Lasse Collin1-0/+2
2011-04-18xzgrep: fix typo in $0 parsingMartin Väth1-2/+2
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>
2011-04-12Remove doubled words from documentation and comments.Lasse Collin6-7/+7
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.
2011-04-11liblzma: Document lzma_easy_(enc|dec)oder_memusage() better too.Lasse Collin1-0/+9
2011-04-11liblzma: Document lzma_raw_(enc|dec)oder_memusage() better.Lasse Collin1-2/+6
It didn't mention the return value that is used if an error occurs.
2011-04-11liblzma: Don't create an empty Block in lzma_stream_buffer_encode().Lasse Collin1-7/+13
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.
2011-04-11liblzma: Fix API docs to mention LZMA_UNSUPPORTED_CHECK.Lasse Collin2-0/+4
This return value was missing from the API comments of four functions.
2011-04-11liblzma: Validate encoder arguments better.Lasse Collin3-6/+20
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.
2011-04-09Update THANKS.Lasse Collin1-0/+1
2011-04-09liblzma: Add missing #ifdefs to filter_common.c.Lasse Collin1-3/+3
Passing --disable-decoders to configure broke a few encoders due to missing #ifdefs in filter_common.c. Thanks to Jason Gorski for the patch.
2011-04-05liblzma: Fix a memory leak in stream_encoder.c.Lasse Collin1-1/+1
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.
2011-04-01Bumped version and liblzma soname to 5.0.2.larhzu/v5.0.2Lasse Collin2-2/+2
2011-04-01Updated NEWS for 5.0.2.Lasse Collin1-0/+18
2011-03-31Update INSTALL with another note about IRIX.Lasse Collin1-0/+4
2011-03-31Tests: Add a new file to test empty LZMA2 streams.Lasse Collin2-0/+4
2011-03-31liblzma: Fix decoding of LZMA2 streams having no uncompressed data.Lasse Collin1-4/+4
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.
2011-03-24Scripts: Better fix for xzgrep.Lasse Collin1-2/+6
Now it uses "grep -q". Thanks to Gregory Margo.
2011-03-24Updated THANKS.Lasse Collin1-0/+1
2011-03-24Scripts: Fix xzgrep -l.Lasse Collin1-2/+2
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.
2011-02-04xz: Clean up suffix.c.Lasse Collin1-24/+20
struct suffix_pair isn't needed in compresed_name() so get rid of it there.
2011-02-04xz: Check if the file already has custom suffix when compressing.Lasse Collin1-0/+9
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.
2011-02-02Updated THANKS.Lasse Collin1-0/+1
2011-02-02Translations: Add Polish translation.Lasse Collin2-0/+826
Thanks to Jakub Bogusz.
2011-02-02Updated THANKS.Lasse Collin1-0/+1
2011-01-28Bump package version and liblzma soname to 5.0.1.larhzu/v5.0.1Lasse Collin2-2/+2
2011-01-28Update NEWS for 5.0.1.Lasse Collin1-0/+14
2011-01-26xz: Fix --force on setuid/setgid/sticky and multi-hardlink files.Lasse Collin1-8/+7
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.
2011-01-18Updated THANKS.Lasse Collin1-0/+1
2011-01-18Add alloc_size and malloc attributes to a few functions.Lasse Collin3-3/+10
Thanks to Cristian Rodríguez for the original patch.
2010-12-13Scripts: Fix gzip and bzip2 support in xzdiff.Lasse Collin1-6/+6
2010-12-12Build: Enable ASM on DJGPP by default.Lasse Collin1-1/+1
2010-12-12Updated THANKS.Lasse Collin1-0/+1
2010-12-12Add missing PRIx32 and PRIx64 compatibility definitions.Lasse Collin1-0/+9
This fixes portability to systems that lack C99 inttypes.h. Thanks to Juan Manuel Guerrero.
2010-12-12DOS-like: Treat \ and : as directory separators in addition to /.Lasse Collin1-4/+29
Juan Manuel Guerrero had fixed this in his XZ Utils port to DOS/DJGPP. The bug affects also Windows and OS/2.
2010-12-07Translations: Fix Czech translation of "sparse file".Lasse Collin1-44/+44
Thanks to Petr Hubený and Marek Černocký.
2010-11-15liblzma: Document the return value of lzma_lzma_preset().Lasse Collin1-0/+3
2010-11-13Simplify paths in generated API docsJonathan Nieder1-1/+1
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
2010-10-26Build: Copy the example programs to $docdir/examples.Lasse Collin2-1/+7
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".
2010-10-23Build: Fix mydist rule when .git doesn't exist.larhzu/v5.0.0Lasse Collin1-0/+1
2010-10-23Add NEWS for 5.0.0.Lasse Collin1-0/+62
2010-10-23Bump version to 5.0.0 and liblzma version-info to 5:0:0.Lasse Collin2-5/+5
2010-10-23liblzma: Make lzma_code() check the reserved members in lzma_stream.Lasse Collin1-0/+14
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.
2010-10-23Windows: Use MinGW's stdio functions.Lasse Collin1-0/+5
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.
2010-10-23liblzma: Use 512 as INDEX_GROUP_SIZE.Lasse Collin1-1/+1
This lets compiler use shifting instead of 64-bit division.
2010-10-23liblzma: A few ABI tweaks to reserve space in structures.Lasse Collin3-7/+8
2010-10-21xz: Make sure that message_strm() can never return NULL.Lasse Collin1-2/+5
2010-10-21liblzma: Update the comments in the API headers.Lasse Collin14-107/+136
Adding support for LZMA_FINISH for Index encoding and decoding needed tiny additions to the relevant .c files too.
2010-10-19Update INSTALL.generic.Lasse Collin1-18/+81
2010-10-19Clean up a few FIXMEs and TODOs.Lasse Collin6-7/+8
lzma_chunk_size() was commented out because it is currently useless.
2010-10-19Update docs.Lasse Collin4-143/+172
2010-10-12xz: Avoid raise() also on OpenVMS.Lasse Collin1-1/+1
This is similar to DOS/DJGPP that killing the program with a signal will print a backtrace or a similar message.
2010-10-11xz: Avoid SA_RESTART for portability reasons.Lasse Collin3-23/+25
SA_RESTART is not as portable as I had hoped. It's missing at least from OpenVMS, QNX, and DJGPP). Luckily we can do fine without SA_RESTART.
2010-10-10xz: Use "%"PRIu32 instead of "%d" in a format string.Lasse Collin1-1/+1
2010-10-10test_files.sh: Fix the first line.Lasse Collin1-1/+1
For some reason this prevented running the test only on OS/2 and even on that it broke only recently. Thanks to Elbert Pol.
2010-10-10lzmainfo: Use "%"PRIu32 instead of "%u" for uint32_t.Lasse Collin1-1/+1
2010-10-10lzmainfo: Use fileno(stdin) instead of STDIN_FILENO.Lasse Collin1-1/+1
2010-10-09lzmainfo: Use setmode() on DOS-like systems.Lasse Collin1-0/+9
2010-10-09OS/2 and DOS: Be less verbose on signals.Lasse Collin1-0/+7
Calling raise() to kill xz when user has pressed C-c is a bit verbose on OS/2 and DOS/DJGPP. Instead of calling raise(), set only the exit status to 1.
2010-10-09DOS: Update the Makefile, config.h and README.Lasse Collin3-243/+86
This is now simpler and builds only xz.exe.
2010-10-09Windows: Put some license info into README-Windows.txt.Lasse Collin1-4/+4
2010-10-09Windows: Fix a diagnostics bug in build.bash.Lasse Collin1-1/+1
2010-10-09lzmainfo: Add Windows resource file.Lasse Collin2-0/+21
2010-10-09Add missing public domain notice to lzmadec_w32res.rc.Lasse Collin1-0/+7
2010-10-09Windows: Update common_w32res.rc.Lasse Collin1-6/+3
2010-10-09Windows: Make build.bash prefer MinGW-w32 over MinGW.Lasse Collin1-9/+9
This is simply for licensing reasons. The 64-bit version will be built with MinGW-w64 anyway (at least for now), so using it also for 32-bit build allows using the same copyright notice about the MinGW-w64/w32 runtime. Note that using MinGW would require a copyright notice too, because its runtime is not in the public domain either even though MinGW's home page claims that it is public domain. See <http://marc.info/?l=mingw-users&m=126489506214078>.
2010-10-09Windows: Copy COPYING-Windows.txt (if it exists) to the package.Lasse Collin1-2/+12
Also, put README-Windows.txt to the doc directory like the other documentation files.
2010-10-08Windows: Fix build.bash again.Lasse Collin1-3/+4
630a8beda34af0ac153c8051b1bf01230558e422 wasn't good.
2010-10-08Use LZMA_VERSION_STRING instead of PACKAGE_VERSION.Lasse Collin1-1/+1
Those are the same thing, and the former makes it a bit easier to build the code with other build systems, because one doesn't need to update the version number into custom config.h. This change affects only lzmainfo. Other tools were already using LZMA_VERSION_STRING.
2010-10-08configure.ac: Remove two unused defines.Lasse Collin1-4/+0