aboutsummaryrefslogtreecommitdiff
path: root/src/xz/message.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2010-06-01Rename message_filters_get() to message_filters_to_str().Lasse Collin1-2/+2
2010-05-27Remove references to the Subblock filter in xz and tests.Lasse Collin1-9/+0
Thanks to Jonathan Nieder.
2010-05-16Split message_filters().Lasse Collin1-67/+120
message_filters_to_str() converts the filter chain to a string. message_filters_show() replaces the original message_filters(). uint32_to_optstr() was also added to show the dictionary size in nicer format when possible.
2010-04-12Show both elapsed time and estimated remaining time in xz -v.Lasse Collin1-48/+38
The extra space for showing both has been taken from the sizes field. If the sizes grow big, bigger units than MiB will be used. It makes it slightly difficult to see that progress is still happening with huge files, but it should be OK in practice. Thanks to Trent W. Buck for <http://bugs.debian.org/574583> and Jonathan Nieder for suggestions how to fix it.
2010-03-07Consistently round up the memory usage limit in messages.Lasse Collin1-2/+3
It still feels a bit wrong to round 1 byte to 1 MiB but at least it is now done consistently so that the same byte value is always rounded the same way to MiB.
2010-02-12Collection of language fixes to comments and docs.Lasse Collin1-5/+5
Thanks to Jonathan Nieder.
2010-01-31Improve displaying of the memory usage limit.Lasse Collin1-8/+29
2010-01-31Delay opening the destionation file and other fixes.Lasse Collin1-20/+26
The opening of the destination file is now delayed a little. The coder is initialized, and if decompressing, the memory usage of the first Block compared against the memory usage limit before the destination file is opened. This means that if --force was used, the old "target" file won't be deleted so easily when something goes wrong very early. Thanks to Mark K for the bug report. The above fix required some changes to progress message handling. Now there is a separate function for setting and printing the filename. It is used also in list.c. list_file() now handles stdin correctly (gives an error). A useless check for user_abort was removed from file_io.c.
2010-01-27Use PACKAGE_URL instead of custom PACKAGE_HOMEPAGE.Lasse Collin1-1/+1
2010-01-24Some improvements to printing sizes in xz.Lasse Collin1-55/+25
2009-12-07Add a note for translators to add a bug reporting addressLasse Collin1-0/+4
for translation bugs.
2009-12-07Prevent xgettext from taking one regular string as a C format string.Lasse Collin1-1/+1
Thanks to Marek Černocký.
2009-11-25Create sparse files by default when decompressing intoLasse Collin1-0/+1
a regular file. Sparse file creation can be disabled with --no-sparse. I don't promise yet that the name of this option won't change before 5.0.0. It's possible that the code, that checks when it is safe to use sparse output on stdout, is not good enough, and a more flexible command line option is needed to configure sparse file handling.
2009-11-16Add support for --info-memory and --robot to xz.Lasse Collin1-12/+35
Currently --robot works only with --info-memory and --version. --help and --long-help work too, but --robot has no effect on them. Thanks to Jonathan Nieder for the original patches.
2009-11-14Fix description of --memory in --long-help.Lasse Collin1-2/+1
2009-10-16Mention --check=none in --long-help. It was already inLasse Collin1-1/+1
the man page though. Thanks to Jim Meyering for noticing this.
2009-09-19Various changes.Lasse Collin1-14/+16
Separate a few reusable components from XZ Utils specific code. The reusable code is now in "tuklib" modules. A few more could be separated still, e.g. bswap.h. Fix some bugs in lzmainfo. Fix physmem and cpucores code on OS/2. Thanks to Elbert Pol for help. Add OpenVMS support into physmem. Add a few #ifdefs to ease building XZ Utils on OpenVMS. Thanks to Jouk Jansen for the original patch.
2009-09-12A few grammar fixes.Lasse Collin1-11/+11
Thanks to Christian Weisgerber for pointing out some of these.
2009-07-02Define PACKAGE_HOMEPAGE in configure.ac and use it inLasse Collin1-2/+2
xz and xzdec. Use also PACKAGE_NAME instead of hardcoding "XZ Utils".
2009-06-26Ugly hack to make it possible to use the thousand separatorLasse Collin1-8/+9
format character with snprintf() on POSIX systems but not on non-POSIX systems and still keep xgettext working.
2009-05-23Add support for specifying the BCJ filter start offsetLasse Collin1-6/+8
in the xz command line tool.
2009-05-22Add --no-warn.Lasse Collin1-0/+4
2009-05-22Make the default memory usage limit 40 % of RAM for bothLasse Collin1-15/+13
compressing and decompressing. This should be OK now that xz automatically scales down the compression settings if they would exceed the memory usage limit (earlier, the limit for compression was increased to 90 % because low limit broke scripts that used "xz -9" on systems with low RAM). Support spcifying the memory usage limit as a percentage of RAM (e.g. --memory=50%). Support --threads=0 to reset the thread limit to the default value (number of available CPU cores). Use UINT32_MAX instead of SIZE_MAX as the maximum in args.c. hardware.c was already expecting uint32_t value. Cleaned up the output of --help and --long-help.
2009-04-13Put the interesting parts of XZ Utils into the public domain.Lasse Collin1-10/+3
Some minor documentation cleanups were made at the same time.
2009-02-22Add a rough explanation of --extreme to output of --help.Lasse Collin1-0/+4
2009-02-22Fixes to progress message handling in xz:Lasse Collin1-177/+306
- Don't use Windows-specific code on Windows. The old code required at least Windows 2000. Now it should work on Windows 98 and later, and maybe on Windows 95 too. - Use less precision when showing estimated remaining time. - Fix some small design issues.
2009-02-14Fix microsecond vs. nanosecond confusion in my_time().Lasse Collin1-1/+1
2009-02-14Cleanups to the code that detects the amount of RAM andLasse Collin1-2/+3
the number of CPU cores. Added support for using sysinfo() on Linux systems whose libc lacks appropriate sysconf() support (at least dietlibc). The Autoconf macros were split into separate files, and CPU core count detection was moved from hardware.c to cpucores.h. The core count isn't used for anything real for now, so a problematic part in process.c was commented out.
2009-02-13Changed how the version number is specified in various places.Lasse Collin1-1/+1
Now configure.ac will get the version number directly from src/liblzma/api/lzma/version.h. The intent is to reduce the number of places where the version number is duplicated. In future, support for displaying Git commit ID may be added too.
2009-02-13Improve support for DOS-like systems.Lasse Collin1-0/+3
Here DOS-like means DOS, Windows, and OS/2.
2009-02-05Various code cleanups the the xz command line tool.Lasse Collin1-8/+57
It now builds with MinGW.
2008-12-27Some xz command line tool improvements.Lasse Collin1-2/+2
2008-12-17xz message handling improvementsLasse Collin1-11/+114
2008-12-10Remove obsolete comment.Lasse Collin1-1/+0
2008-12-10Use "decompression" consistently in --long-help.Lasse Collin1-1/+1
2008-12-10Added preset=NUM to --lzma1 and --lzma2. This makes it easyLasse Collin1-0/+1
to take a preset as a template and modify it a little.
2008-11-28Tested using COLUMNS environment variable to avoid brokenLasse Collin1-5/+9
progress indicator but since COLUMNS isn't usually available, the code was left commented out.
2008-11-27Cleanups to message.c.Lasse Collin1-29/+18
2008-11-19Renamed lzma to xz and lzmadec to xzdec. We create symlinksLasse Collin1-0/+892
lzma, unlzma, and lzcat in "make install" for backwards compatibility with LZMA Utils 4.32.x; I'm not sure if this should be the default though.