Lasse Collin
af9d48d551
Tests: Add a new file to test empty LZMA2 streams.
2011-03-31 13:08:10 +03:00
Lasse Collin
d099ef9f51
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.
2011-03-31 13:08:05 +03:00
Lasse Collin
df87249b26
Scripts: Better fix for xzgrep.
...
Now it uses "grep -q".
Thanks to Gregory Margo.
2011-03-24 01:43:23 +02:00
Lasse Collin
68c453e1c7
Updated THANKS.
2011-03-24 01:24:16 +02:00
Lasse Collin
b441d39855
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.
2011-03-24 01:24:12 +02:00
Lasse Collin
82d5164839
xz: Clean up suffix.c.
...
struct suffix_pair isn't needed in compresed_name()
so get rid of it there.
2011-02-04 22:49:31 +02:00
Lasse Collin
6decc8b418
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.
2011-02-04 11:29:47 +02:00
Lasse Collin
ecda90061d
Updated THANKS.
2011-02-02 23:01:51 +02:00
Lasse Collin
0fda1ae5b1
Translations: Add Polish translation.
...
Thanks to Jakub Bogusz.
2011-02-02 23:00:33 +02:00
Lasse Collin
00be32978f
Updated THANKS.
2011-02-02 22:24:00 +02:00
Lasse Collin
7232fcf96b
Bump package version and liblzma soname to 5.0.1.
2011-01-28 20:26:38 +02:00
Lasse Collin
5fbce0b8d9
Update NEWS for 5.0.1.
2011-01-28 20:16:57 +02:00
Lasse Collin
03ebd1bbb3
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 23ac2c44c3
.
Thanks to Charles Wilson.
2011-01-26 12:19:08 +02:00
Lasse Collin
7bd0a5e7cc
Updated THANKS.
2011-01-18 21:25:24 +02:00
Lasse Collin
f71c4e16e9
Add alloc_size and malloc attributes to a few functions.
...
Thanks to Cristian Rodríguez for the original patch.
2011-01-18 21:23:50 +02:00
Lasse Collin
316cbe2446
Scripts: Fix gzip and bzip2 support in xzdiff.
2010-12-13 16:36:33 +02:00
Lasse Collin
9311774c49
Build: Enable ASM on DJGPP by default.
2010-12-12 21:23:55 +02:00
Lasse Collin
4a42aaee28
Updated THANKS.
2010-12-12 16:09:42 +02:00
Lasse Collin
ce56f63c41
Add missing PRIx32 and PRIx64 compatibility definitions.
...
This fixes portability to systems that lack C99 inttypes.h.
Thanks to Juan Manuel Guerrero.
2010-12-12 16:07:11 +02:00
Lasse Collin
e6baedddcf
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.
2010-12-12 14:50:04 +02:00
Lasse Collin
b7afd3e22a
Translations: Fix Czech translation of "sparse file".
...
Thanks to Petr Hubený and Marek Černocký.
2010-12-07 18:52:04 +02:00
Lasse Collin
3e564704bc
liblzma: Document the return value of lzma_lzma_preset().
2010-11-15 14:28:26 +02:00
Jonathan Nieder
2964d8d691
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
2010-11-13 14:36:28 +02:00
Lasse Collin
37c25658ef
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".
2010-10-26 15:48:48 +03:00
Lasse Collin
e45929260c
Build: Fix mydist rule when .git doesn't exist.
2010-10-23 17:25:52 +03:00
Lasse Collin
6e1326fcdf
Add NEWS for 5.0.0.
2010-10-23 14:15:35 +03:00
Lasse Collin
b667a3ef63
Bump version to 5.0.0 and liblzma version-info to 5:0:0.
2010-10-23 14:02:53 +03:00
Lasse Collin
8c947e9291
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.
2010-10-23 12:30:54 +03:00
Lasse Collin
e61d85e082
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.
2010-10-23 12:26:33 +03:00
Lasse Collin
23e23f1dc0
liblzma: Use 512 as INDEX_GROUP_SIZE.
...
This lets compiler use shifting instead of 64-bit division.
2010-10-23 12:21:32 +03:00
Lasse Collin
613939fc82
liblzma: A few ABI tweaks to reserve space in structures.
2010-10-23 12:20:11 +03:00
Lasse Collin
68b83f252d
xz: Make sure that message_strm() can never return NULL.
2010-10-21 23:16:11 +03:00
Lasse Collin
d09c5753e3
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.
2010-10-21 23:06:31 +03:00
Lasse Collin
33c1c0e102
Update INSTALL.generic.
2010-10-19 12:08:30 +03:00
Lasse Collin
0076e03641
Clean up a few FIXMEs and TODOs.
...
lzma_chunk_size() was commented out because it is
currently useless.
2010-10-19 11:44:37 +03:00
Lasse Collin
ce34ec4f54
Update docs.
2010-10-19 10:21:08 +03:00
Lasse Collin
f0fa880d24
xz: Avoid raise() also on OpenVMS.
...
This is similar to DOS/DJGPP that killing the program
with a signal will print a backtrace or a similar message.
2010-10-12 15:13:30 +03:00
Lasse Collin
ac462b1c47
xz: Avoid SA_RESTART for portability reasons.
...
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-11 21:26:19 +03:00
Lasse Collin
d52b411716
xz: Use "%"PRIu32 instead of "%d" in a format string.
2010-10-10 17:58:58 +03:00
Lasse Collin
ae74d1bdeb
test_files.sh: Fix the first line.
...
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-10 17:43:26 +03:00
Lasse Collin
d492b80ddd
lzmainfo: Use "%"PRIu32 instead of "%u" for uint32_t.
2010-10-10 16:49:01 +03:00
Lasse Collin
825e859a90
lzmainfo: Use fileno(stdin) instead of STDIN_FILENO.
2010-10-10 16:47:01 +03:00
Lasse Collin
acbc4cdecb
lzmainfo: Use setmode() on DOS-like systems.
2010-10-09 23:20:51 +03:00
Lasse Collin
ef364d3abc
OS/2 and DOS: Be less verbose on signals.
...
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-09 21:51:03 +03:00
Lasse Collin
5629c4be07
DOS: Update the Makefile, config.h and README.
...
This is now simpler and builds only xz.exe.
2010-10-09 19:28:49 +03:00
Lasse Collin
f25a77e6b9
Windows: Put some license info into README-Windows.txt.
2010-10-09 18:57:55 +03:00
Lasse Collin
e75100f549
Windows: Fix a diagnostics bug in build.bash.
2010-10-09 18:57:04 +03:00
Lasse Collin
efeb998a2b
lzmainfo: Add Windows resource file.
2010-10-09 13:02:15 +03:00
Lasse Collin
389d418445
Add missing public domain notice to lzmadec_w32res.rc.
2010-10-09 12:57:25 +03:00
Lasse Collin
6389c773a4
Windows: Update common_w32res.rc.
2010-10-09 12:52:12 +03:00