ChangeLog revision 215187
1215187Smmcommit e45929260cd902036efd40c5610a8d0a50d5712b 2215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3215187SmmDate: Sat Oct 23 17:25:52 2010 +0300 4215187Smm 5215187Smm Build: Fix mydist rule when .git doesn't exist. 6215187Smm 7215187Smmcommit 6e1326fcdf6b6209949be57cfe3ad4b781b65168 8215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 9215187SmmDate: Sat Oct 23 14:15:35 2010 +0300 10215187Smm 11215187Smm Add NEWS for 5.0.0. 12215187Smm 13215187Smmcommit b667a3ef6338a2c1db7b7706b1f6c99ea392221c 14215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 15215187SmmDate: Sat Oct 23 14:02:53 2010 +0300 16215187Smm 17215187Smm Bump version to 5.0.0 and liblzma version-info to 5:0:0. 18215187Smm 19215187Smmcommit 8c947e9291691629714dafb4536c718b6cc24fbd 20215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 21215187SmmDate: Sat Oct 23 12:30:54 2010 +0300 22215187Smm 23215187Smm liblzma: Make lzma_code() check the reserved members in lzma_stream. 24215187Smm 25215187Smm If any of the reserved members in lzma_stream are non-zero 26215187Smm or non-NULL, LZMA_OPTIONS_ERROR is returned. It is possible 27215187Smm that a new feature in the future is indicated by just setting 28215187Smm a reserved member to some other value, so the old liblzma 29215187Smm version need to catch it as an unsupported feature. 30215187Smm 31215187Smmcommit e61d85e082743ebd2dd0ff28fc0a82482ede0538 32215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 33215187SmmDate: Sat Oct 23 12:26:33 2010 +0300 34215187Smm 35215187Smm Windows: Use MinGW's stdio functions. 36215187Smm 37215187Smm The non-standard ones from msvcrt.dll appear to work 38215187Smm most of the time with XZ Utils, but there are some 39215187Smm corner cases where things may go very wrong. So it's 40215187Smm good to use the better replacements provided by 41215187Smm MinGW(-w64) runtime. 42215187Smm 43215187Smmcommit 23e23f1dc029146714c9a98313ab3ea93d71a2fc 44215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 45215187SmmDate: Sat Oct 23 12:21:32 2010 +0300 46215187Smm 47215187Smm liblzma: Use 512 as INDEX_GROUP_SIZE. 48215187Smm 49215187Smm This lets compiler use shifting instead of 64-bit division. 50215187Smm 51215187Smmcommit 613939fc82603b75b59eee840871a05bc8dd08e0 52215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 53215187SmmDate: Sat Oct 23 12:20:11 2010 +0300 54215187Smm 55215187Smm liblzma: A few ABI tweaks to reserve space in structures. 56215187Smm 57215187Smmcommit 68b83f252df3d27480a9f6f03445d16f6506fef1 58215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 59215187SmmDate: Thu Oct 21 23:16:11 2010 +0300 60215187Smm 61215187Smm xz: Make sure that message_strm() can never return NULL. 62215187Smm 63215187Smmcommit d09c5753e33ff96ee57edb6d1e98e34041203695 64215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 65215187SmmDate: Thu Oct 21 23:06:31 2010 +0300 66215187Smm 67215187Smm liblzma: Update the comments in the API headers. 68215187Smm 69215187Smm Adding support for LZMA_FINISH for Index encoding and 70215187Smm decoding needed tiny additions to the relevant .c files too. 71215187Smm 72215187Smmcommit 33c1c0e102eb529588503b8beea0903a45488fad 73215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 74215187SmmDate: Tue Oct 19 12:08:30 2010 +0300 75215187Smm 76215187Smm Update INSTALL.generic. 77215187Smm 78215187Smmcommit 0076e03641f201c4b77dddd5a6db5880be19a78c 79215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 80215187SmmDate: Tue Oct 19 11:44:37 2010 +0300 81215187Smm 82215187Smm Clean up a few FIXMEs and TODOs. 83215187Smm 84215187Smm lzma_chunk_size() was commented out because it is 85215187Smm currently useless. 86215187Smm 87215187Smmcommit ce34ec4f54ff8b753da236f371ad8dd23c8135c9 88215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 89215187SmmDate: Tue Oct 19 10:21:08 2010 +0300 90215187Smm 91215187Smm Update docs. 92215187Smm 93215187Smmcommit f0fa880d247e73264d2c04fe31fb3412318a0026 94215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 95215187SmmDate: Tue Oct 12 15:13:30 2010 +0300 96215187Smm 97215187Smm xz: Avoid raise() also on OpenVMS. 98215187Smm 99215187Smm This is similar to DOS/DJGPP that killing the program 100215187Smm with a signal will print a backtrace or a similar message. 101215187Smm 102215187Smmcommit ac462b1c47c451f5c62e428306314c4bdad8ae7f 103215187SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 104215187SmmDate: Mon Oct 11 21:26:19 2010 +0300 105215187Smm 106215187Smm xz: Avoid SA_RESTART for portability reasons. 107215187Smm 108215187Smm SA_RESTART is not as portable as I had hoped. It's missing 109215187Smm at least from OpenVMS, QNX, and DJGPP). Luckily we can do 110215187Smm fine without SA_RESTART. 111215187Smm 112213700Smmcommit d52b411716a614c202e89ba732492efb9916cd3f 113213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 114213700SmmDate: Sun Oct 10 17:58:58 2010 +0300 115213700Smm 116213700Smm xz: Use "%"PRIu32 instead of "%d" in a format string. 117213700Smm 118213700Smmcommit ae74d1bdeb075c3beefe76e1136c5741804e7e91 119213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 120213700SmmDate: Sun Oct 10 17:43:26 2010 +0300 121213700Smm 122213700Smm test_files.sh: Fix the first line. 123213700Smm 124213700Smm For some reason this prevented running the test only 125213700Smm on OS/2 and even on that it broke only recently. 126213700Smm 127213700Smm Thanks to Elbert Pol. 128213700Smm 129213700Smmcommit d492b80ddd6f9a13419de6d102df7374d8f448e8 130213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 131213700SmmDate: Sun Oct 10 16:49:01 2010 +0300 132213700Smm 133213700Smm lzmainfo: Use "%"PRIu32 instead of "%u" for uint32_t. 134213700Smm 135213700Smmcommit 825e859a9054bd91202e5723c41a17e72f63040a 136213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 137213700SmmDate: Sun Oct 10 16:47:01 2010 +0300 138213700Smm 139213700Smm lzmainfo: Use fileno(stdin) instead of STDIN_FILENO. 140213700Smm 141213700Smmcommit acbc4cdecbeec2a4dfaac04f185ece49b2ff17c8 142213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 143213700SmmDate: Sat Oct 9 23:20:51 2010 +0300 144213700Smm 145213700Smm lzmainfo: Use setmode() on DOS-like systems. 146213700Smm 147213700Smmcommit ef364d3abc5647111c5424ea0d83a567e184a23b 148213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 149213700SmmDate: Sat Oct 9 21:51:03 2010 +0300 150213700Smm 151213700Smm OS/2 and DOS: Be less verbose on signals. 152213700Smm 153213700Smm Calling raise() to kill xz when user has pressed C-c 154213700Smm is a bit verbose on OS/2 and DOS/DJGPP. Instead of 155213700Smm calling raise(), set only the exit status to 1. 156213700Smm 157213700Smmcommit 5629c4be07b6c67e79842b2569da1cedc9c0d69a 158213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 159213700SmmDate: Sat Oct 9 19:28:49 2010 +0300 160213700Smm 161213700Smm DOS: Update the Makefile, config.h and README. 162213700Smm 163213700Smm This is now simpler and builds only xz.exe. 164213700Smm 165213700Smmcommit f25a77e6b9bc48a243ddfbbd755b7960eec7e0ac 166213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 167213700SmmDate: Sat Oct 9 18:57:55 2010 +0300 168213700Smm 169213700Smm Windows: Put some license info into README-Windows.txt. 170213700Smm 171213700Smmcommit e75100f549f85d231df25c07aa94d63e78e2d668 172213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 173213700SmmDate: Sat Oct 9 18:57:04 2010 +0300 174213700Smm 175213700Smm Windows: Fix a diagnostics bug in build.bash. 176213700Smm 177213700Smmcommit efeb998a2b1025df1c1d202cc7d21d866cd1c336 178213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 179213700SmmDate: Sat Oct 9 13:02:15 2010 +0300 180213700Smm 181213700Smm lzmainfo: Add Windows resource file. 182213700Smm 183213700Smmcommit 389d418445f1623593dfdbba55d52fbb6d1205f5 184213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 185213700SmmDate: Sat Oct 9 12:57:25 2010 +0300 186213700Smm 187213700Smm Add missing public domain notice to lzmadec_w32res.rc. 188213700Smm 189213700Smmcommit 6389c773a4912dd9f111256d74ba1605230a7957 190213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 191213700SmmDate: Sat Oct 9 12:52:12 2010 +0300 192213700Smm 193213700Smm Windows: Update common_w32res.rc. 194213700Smm 195213700Smmcommit 71275457ca24c9b01721f5cfc3638cf094daf454 196213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 197213700SmmDate: Sat Oct 9 12:27:08 2010 +0300 198213700Smm 199213700Smm Windows: Make build.bash prefer MinGW-w32 over MinGW. 200213700Smm 201213700Smm This is simply for licensing reasons. The 64-bit version 202213700Smm will be built with MinGW-w64 anyway (at least for now), 203213700Smm so using it also for 32-bit build allows using the same 204213700Smm copyright notice about the MinGW-w64/w32 runtime. 205213700Smm 206213700Smm Note that using MinGW would require a copyright notice too, 207213700Smm because its runtime is not in the public domain either even 208213700Smm though MinGW's home page claims that it is public domain. 209213700Smm See <http://marc.info/?l=mingw-users&m=126489506214078>. 210213700Smm 211213700Smmcommit 3ac35719d8433af937af6491383d4a50e343099b 212213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 213213700SmmDate: Sat Oct 9 11:33:21 2010 +0300 214213700Smm 215213700Smm Windows: Copy COPYING-Windows.txt (if it exists) to the package. 216213700Smm 217213700Smm Also, put README-Windows.txt to the doc directory like 218213700Smm the other documentation files. 219213700Smm 220213700Smmcommit 7b5db576fd7a4a67813b8437a9ccd4dbc94bbaae 221213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 222213700SmmDate: Fri Oct 8 21:42:37 2010 +0300 223213700Smm 224213700Smm Windows: Fix build.bash again. 225213700Smm 226213700Smm 630a8beda34af0ac153c8051b1bf01230558e422 wasn't good. 227213700Smm 228213700Smmcommit d3cd7abe85ec7c2f46cf198b15c00d5d119df3dd 229213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 230213700SmmDate: Fri Oct 8 16:53:20 2010 +0300 231213700Smm 232213700Smm Use LZMA_VERSION_STRING instead of PACKAGE_VERSION. 233213700Smm 234213700Smm Those are the same thing, and the former makes it a bit 235213700Smm easier to build the code with other build systems, because 236213700Smm one doesn't need to update the version number into custom 237213700Smm config.h. 238213700Smm 239213700Smm This change affects only lzmainfo. Other tools were already 240213700Smm using LZMA_VERSION_STRING. 241213700Smm 242213700Smmcommit 084c60d318f2dbaef4078d9b100b4a373d0c3a7f 243213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 244213700SmmDate: Fri Oct 8 15:59:25 2010 +0300 245213700Smm 246213700Smm configure.ac: Remove two unused defines. 247213700Smm 248213700Smmcommit 11f51b6714357cb67ec7e56ed9575c199b5581fe 249213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 250213700SmmDate: Fri Oct 8 15:32:29 2010 +0300 251213700Smm 252213700Smm Make tests accommodate missing xz or xzdec. 253213700Smm 254213700Smmcommit b1c7368f95e93ccdefdd0748e04398c26766f47f 255213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 256213700SmmDate: Fri Oct 8 15:25:45 2010 +0300 257213700Smm 258213700Smm Build: Add options to disable individual command line tools. 259213700Smm 260213700Smmcommit 630a8beda34af0ac153c8051b1bf01230558e422 261213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 262213700SmmDate: Thu Oct 7 00:44:53 2010 +0300 263213700Smm 264213700Smm Windows: Make build.bash work without --enable-dynamic=no. 265213700Smm 266213700Smmcommit f9907503f882a745dce9d84c2968f6c175ba966a 267213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 268213700SmmDate: Tue Oct 5 14:13:16 2010 +0300 269213700Smm 270213700Smm Build: Remove the static/dynamic tricks. 271213700Smm 272213700Smm Most distros want xz linked against shared liblzma, so 273213700Smm it doesn't help much to require --enable-dynamic for that. 274213700Smm Those who want to avoid PIC on x86-32 to get better 275213700Smm performance, can still do it e.g. by using --disable-shared 276213700Smm to compile xz and then another pass to compile shared liblzma. 277213700Smm 278213700Smm Part of these static/dynamic tricks were needed for Windows 279213700Smm in the past. Nowadays we rely on GCC and binutils to do the 280213700Smm right thing with auto-import. If the Autotooled build system 281213700Smm needs to support some other toolchain on Windows in the future, 282213700Smm this may need some rethinking. 283213700Smm 284213700Smmcommit fda4724d8114fccfa31c1839c15479f350c2fb4c 285213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 286213700SmmDate: Tue Oct 5 12:18:58 2010 +0300 287213700Smm 288213700Smm configure.ac: Silence a warning from Autoconf 2.68. 289213700Smm 290213700Smmcommit 80b5675fa62c87426fe86f8fcd20feeabc4361b9 291213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 292213700SmmDate: Mon Oct 4 19:43:01 2010 +0300 293213700Smm 294213700Smm A few more languages files to the xz man page. 295213700Smm 296213700Smm Thanks to Jonathan Nieder. 297213700Smm 298213700Smmcommit f9722dbeca4dc4c43cfd15d122dafaac50b0a0bb 299213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 300213700SmmDate: Sat Oct 2 12:07:33 2010 +0300 301213700Smm 302213700Smm Update the FAQ. 303213700Smm 304213700Smmcommit 61ae593661e8dc402394e84d567ca2044a51572b 305213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 306213700SmmDate: Sat Oct 2 11:38:20 2010 +0300 307213700Smm 308213700Smm liblzma: Small fixes to comments in the API headers. 309213700Smm 310213700Smmcommit 9166682dc601fd42c1b9510572e3f917d18de504 311213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 312213700SmmDate: Tue Sep 28 11:40:12 2010 +0300 313213700Smm 314213700Smm Create the PDF versions of the man pages better. 315213700Smm 316213700Smmcommit 17d3c61edd35de8fa884944fc70d1db86daa5dd8 317213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 318213700SmmDate: Tue Sep 28 10:59:53 2010 +0300 319213700Smm 320213700Smm Move version.sh to build-aux. 321213700Smm 322213700Smmcommit 84af9d8770451339a692e9b70f96cf56156a6069 323213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 324213700SmmDate: Tue Sep 28 10:53:02 2010 +0300 325213700Smm 326213700Smm Update .gitignore. 327213700Smm 328213700Smmcommit 31575a449ac64c523da3bab8d0c0b522cdc7c780 329213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 330213700SmmDate: Tue Sep 28 01:17:14 2010 +0300 331213700Smm 332213700Smm Fix accomodate -> accommodate on the xz man page. 333213700Smm 334213700Smmcommit cec0ddc8ec4ce81685a51998b978e22167e461f9 335213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 336213700SmmDate: Mon Sep 27 23:29:34 2010 +0300 337213700Smm 338213700Smm Major man page updates. 339213700Smm 340213700Smm Lots of content was updated on the xz man page. 341213700Smm 342213700Smm Technical improvements: 343213700Smm - Start a new sentence on a new line. 344213700Smm - Use fairly short lines. 345213700Smm - Use constant-width font for examples (where supported). 346213700Smm - Some minor cleanups. 347213700Smm 348213700Smm Thanks to Jonathan Nieder for some language fixes. 349213700Smm 350213700Smmcommit 075257ab0416a0603be930082e31a5703e4ba345 351213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 352213700SmmDate: Sun Sep 26 18:10:31 2010 +0300 353213700Smm 354213700Smm Fix the preset -3e. 355213700Smm 356213700Smm depth=0 was missing. 357213700Smm 358213700Smmcommit 2577da9ebdba13fbe99ae5ee8bde35f7ed60f6d1 359213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 360213700SmmDate: Thu Sep 23 14:03:10 2010 +0300 361213700Smm 362213700Smm Add translations.bash and translation notes to README. 363213700Smm 364213700Smm translations.bash prints some messages from xz, which 365213700Smm hopefully makes it a bit easier to test translations. 366213700Smm 367213700Smmcommit a3c5997c57e5b1a20aae6d1071b584b4f17d0b23 368213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 369213700SmmDate: Fri Sep 17 22:14:30 2010 +0300 370213700Smm 371213700Smm xz: Update the Czech translation. 372213700Smm 373213700Smm Thanks to Marek ��ernock��. 374213700Smm 375213700Smmcommit a1766af582dc23fddd9da1eeb4b9d61e3eb4c2e6 376213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 377213700SmmDate: Thu Sep 16 23:40:41 2010 +0300 378213700Smm 379213700Smm xz: Add Italian translation. 380213700Smm 381213700Smm Thanks to Milo Casagrande and Lorenzo De Liso. 382213700Smm 383213700Smmcommit 21088018554e2b0e02914205377ceb6e34a090bd 384213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 385213700SmmDate: Wed Sep 15 00:34:13 2010 +0300 386213700Smm 387213700Smm xz: Edit a translators comment. 388213700Smm 389213700Smmcommit be16e28ece1b492b8f93382b7fa1cc4da23c6ff6 390213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 391213700SmmDate: Tue Sep 14 22:47:14 2010 +0300 392213700Smm 393213700Smm xz: Add German translation. 394213700Smm 395213700Smm Thanks to Andre Noll. 396213700Smm 397213700Smmcommit e23ea74f3240e6b69683f9e69d1716e0f9e9092b 398213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 399213700SmmDate: Fri Sep 10 14:30:25 2010 +0300 400213700Smm 401213700Smm Updated README. 402213700Smm 403213700Smmcommit 8dad2fd69336985adb9f774fa96dc9c0efcb5a71 404213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 405213700SmmDate: Fri Sep 10 14:30:07 2010 +0300 406213700Smm 407213700Smm Updated INSTALL. 408213700Smm 409213700Smmcommit 0b5f07fe3728c27cce416ddc40f7e4803ae96ac2 410213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 411213700SmmDate: Fri Sep 10 14:26:20 2010 +0300 412213700Smm 413213700Smm Updated the git repository address in ChangeLog. 414213700Smm 415213700Smmcommit a8760203f93a69bc39fd14520a6e9e7b7d70be06 416213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 417213700SmmDate: Fri Sep 10 14:09:33 2010 +0300 418213700Smm 419213700Smm xz: Add a comment to translators about "literal context bits". 420213700Smm 421213700Smmcommit bb0b1004f83cdc4d309e1471c2ecaf9f95ce60c5 422213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 423213700SmmDate: Fri Sep 10 10:30:33 2010 +0300 424213700Smm 425213700Smm xz: Multiple fixes. 426213700Smm 427213700Smm The code assumed that printing numbers with thousand separators 428213700Smm and decimal points would always produce only US-ASCII characters. 429213700Smm This was used for buffer sizes (with snprintf(), no overflows) 430213700Smm and aligning columns of the progress indicator and --list. That 431213700Smm assumption was wrong (e.g. LC_ALL=fi_FI.UTF-8 with glibc), so 432213700Smm multibyte character support was added in this commit. The old 433213700Smm way is used if the operating system doesn't have enough multibyte 434213700Smm support (e.g. lacks wcwidth()). 435213700Smm 436213700Smm The sizes of buffers were increased to accomodate multibyte 437213700Smm characters. I don't know how big they should be exactly, but 438213700Smm they aren't used for anything critical, so it's not too bad. 439213700Smm If they still aren't big enough, I hopefully get a bug report. 440213700Smm snprintf() takes care of avoiding buffer overflows. 441213700Smm 442213700Smm Some static buffers were replaced with buffers allocated on 443213700Smm stack. double_to_str() was removed. uint64_to_str() and 444213700Smm uint64_to_nicestr() now share the static buffer and test 445213700Smm for thousand separator support. 446213700Smm 447213700Smm Integrity check names "None" and "Unknown-N" (2 <= N <= 15) 448213700Smm were marked to be translated. I had forgot these, plus they 449213700Smm wouldn't have worked correctly anyway before this commit, 450213700Smm because printing tables with multibyte strings didn't work. 451213700Smm 452213700Smm Thanks to Marek ��ernock�� for reporting the bug about 453213700Smm misaligned table columns in --list output. 454213700Smm 455213700Smmcommit 639f8e2af33cf8a184d59ba56b6df7c098679d61 456213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 457213700SmmDate: Wed Sep 8 08:49:22 2010 +0300 458213700Smm 459213700Smm Update the Czech translation. 460213700Smm 461213700Smm Thanks to Marek ��ernock��. 462213700Smm 463213700Smmcommit 41bc9956ebfd7c86777d33676acf34c45e7ca7c7 464213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 465213700SmmDate: Tue Sep 7 12:31:40 2010 +0300 466213700Smm 467213700Smm xz: Add a note to translators. 468213700Smm 469213700Smmcommit 77a7746616e555fc08028e883a56d06bf0088b81 470213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 471213700SmmDate: Tue Sep 7 10:42:13 2010 +0300 472213700Smm 473213700Smm Fix use of N_() and ngettext(). 474213700Smm 475213700Smm I had somehow thought that N_() is usually used 476213700Smm as shorthand for ngettext(). 477213700Smm 478213700Smm This also fixes a missing \n from a call to ngettext(). 479213700Smm 480213700Smmcommit e6ad39335842343e622ab51207d1d3cb9caad801 481213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 482213700SmmDate: Mon Sep 6 19:43:12 2010 +0300 483213700Smm 484213700Smm Add missing files to POTFILES.in. 485213700Smm 486213700Smmcommit 58f55131820d2e08a1a6beb9ec0ee2378044eb30 487213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 488213700SmmDate: Mon Sep 6 10:16:24 2010 +0300 489213700Smm 490213700Smm xz: Improve a comment. 491213700Smm 492213700Smmcommit bcb1b898341f7073f51660d7052d7ed6c5461a66 493213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 494213700SmmDate: Sun Sep 5 21:34:29 2010 +0300 495213700Smm 496213700Smm xz: Update the comment about NetBSD in file_io.c. 497213700Smm 498213700Smm Thanks to Joerg Sonnenberger. 499213700Smm 500213700Smmcommit da014d55972f5addbf6b4360d3d8ed2ef4282170 501213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 502213700SmmDate: Sun Sep 5 21:11:33 2010 +0300 503213700Smm 504213700Smm xz: Use an array instead of pointer for stdin_filename. 505213700Smm 506213700Smm Thanks Joerg Sonnenberger. 507213700Smm 508213700Smmcommit 8c7d3d1a0781c296c6b6e2465becaffd2132f7ee 509213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 510213700SmmDate: Sun Sep 5 12:16:17 2010 +0300 511213700Smm 512213700Smm xz: Hopefully ease translating the messages in list.c. 513213700Smm 514213700Smmcommit ef840950ad99cf2955c754875af0e01acf125079 515213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 516213700SmmDate: Sat Sep 4 23:14:44 2010 +0300 517213700Smm 518213700Smm xz: Fix grammar. 519213700Smm 520213700Smmcommit c46afd6edc04ea140db6c59e8486f5707c810c13 521213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 522213700SmmDate: Sat Sep 4 23:12:20 2010 +0300 523213700Smm 524213700Smm xz: Use lzma_lzma_preset() to initialize the options structure. 525213700Smm 526213700Smmcommit 8fd3ac046d0b1416a2094fecc456d9e0f4d5d065 527213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 528213700SmmDate: Sat Sep 4 22:16:28 2010 +0300 529213700Smm 530213700Smm Don't set lc=4 with --extreme. 531213700Smm 532213700Smm This should reduce the cases where --extreme makes 533213700Smm compression worse. On the other hand, some other 534213700Smm files may now benefit slightly less from --extreme. 535213700Smm 536213700Smmcommit 474bac0c33e94aeaca8ada17ab19972b1424bc2b 537213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 538213700SmmDate: Sat Sep 4 22:10:32 2010 +0300 539213700Smm 540213700Smm xz: Minor improvements to --help and --long-help. 541213700Smm 542213700Smmcommit 373ee26f955617295c5c537b04a153a1969140d2 543213700SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 544213700SmmDate: Fri Sep 3 16:49:15 2010 -0500 545213700Smm 546213700Smm Adjust memory limits in test_compress.sh 547213700Smm 548213700Smm Testing compression at level -4 now requires 48 MiB of free store at 549213700Smm compression time and 5 MiB at decompression time. 550213700Smm 551213700Smm Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> 552213700Smm 553213700Smmcommit 2fce9312f36727ea82f3430cc5d3a7d243c5f087 554213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 555213700SmmDate: Fri Sep 3 15:54:40 2010 +0300 556213700Smm 557213700Smm xz: Make -vv show also decompressor memory usage. 558213700Smm 559213700Smmcommit b4b1cbcb53624ab832f8b3189c74450dc7ea29b6 560213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 561213700SmmDate: Fri Sep 3 15:13:12 2010 +0300 562213700Smm 563213700Smm Tweak the compression presets -0 .. -5. 564213700Smm 565213700Smm "Extreme" mode might need some further tweaking still. 566213700Smm Docs were not updated yet. 567213700Smm 568213700Smmcommit 77fe5954cd3d10fb1837372684cbc133b56b6a87 569213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 570213700SmmDate: Fri Sep 3 12:28:41 2010 +0300 571213700Smm 572213700Smm liblzma: Adjust default depth calculation for HC3 and HC4. 573213700Smm 574213700Smm It was 8 + nice_len / 4, now it is 4 + nice_len / 4. 575213700Smm This allows faster settings at lower nice_len values, 576213700Smm even though it seems that I won't use automatic depth 577213700Smm calcuation with HC3 and HC4 in the presets. 578213700Smm 579213700Smmcommit fce69059cf901ce8075a78c7607d591f144a3b5a 580213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 581213700SmmDate: Fri Sep 3 11:11:25 2010 +0300 582213700Smm 583213700Smm xz: Make --help two lines shorter. 584213700Smm 585213700Smm At least for now, the --help option doesn't list any 586213700Smm options that take arguments, so "Mandatory arguments to..." 587213700Smm can be omitted. 588213700Smm 589213700Smmcommit a848e47ced6e5e2a564b5c454b2f5a19c2f40298 590213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 591213700SmmDate: Thu Sep 2 19:22:35 2010 +0300 592213700Smm 593213700Smm xz: Make setting a preset override a custom filter chain. 594213700Smm 595213700Smm This is more logical behavior than ignoring preset level 596213700Smm options once a custom filter chain has been specified. 597213700Smm 598213700Smmcommit b3ff7ba044eaeab3e424d7b51fe914daf681b1a3 599213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 600213700SmmDate: Thu Sep 2 19:09:57 2010 +0300 601213700Smm 602213700Smm xz: Always warn if adjusting dictionary size due to memlimit. 603213700Smm 604213700Smmcommit d5653ba8a1ea9c00de4fddc617aba3c51e18139d 605213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 606213700SmmDate: Tue Aug 10 11:04:30 2010 +0300 607213700Smm 608213700Smm Fix test_compress.sh. 609213700Smm 610213700Smm It broke when --memory option was removed from xzdec. 611213700Smm 612213700Smm Thanks to Jonathan Nieder. 613213700Smm 614213700Smmcommit 792331bdee706aa852a78b171040ebf814c6f3ae 615213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 616213700SmmDate: Sat Aug 7 20:45:18 2010 +0300 617213700Smm 618213700Smm Disable the memory usage limiter by default. 619213700Smm 620213700Smm For several people, the limiter causes bigger problems that 621213700Smm it solves, so it is better to have it disabled by default. 622213700Smm Those who want to have a limiter by default need to enable 623213700Smm it via the environment variable XZ_DEFAULTS. 624213700Smm 625213700Smm Support for environment variable XZ_DEFAULTS was added. It is 626213700Smm parsed before XZ_OPT and technically identical with it. The 627213700Smm intended uses differ quite a bit though; see the man page. 628213700Smm 629213700Smm The memory usage limit can now be set separately for 630213700Smm compression and decompression using --memlimit-compress and 631213700Smm --memlimit-decompress. To set both at once, -M or --memlimit 632213700Smm can be used. --memory was retained as a legacy alias for 633213700Smm --memlimit for backwards compatibility. 634213700Smm 635213700Smm The semantics of --info-memory were changed in backwards 636213700Smm incompatible way. Compatibility wasn't meaningful due to 637213700Smm changes in the memory usage limiter functionality. 638213700Smm 639213700Smm The memory usage limiter info is no longer shown at the 640213700Smm bottom of xz --long -help. 641213700Smm 642213700Smm The memory usage limiter support for removed completely from xzdec. 643213700Smm 644213700Smm xz's man page was updated to match the above changes. Various 645213700Smm unrelated fixes were also made to the man page. 646213700Smm 647213700Smmcommit 4a45dd4c39f75d25c7a37b6400cb24d4010ca801 648213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 649213700SmmDate: Fri Aug 6 20:22:16 2010 +0300 650213700Smm 651213700Smm Add missing const to a global constant in xz. 652213700Smm 653213700Smmcommit 01aa4869cb220b7fdad6d1acbabb2233045daa8f 654213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 655213700SmmDate: Wed Jul 28 11:44:55 2010 +0300 656213700Smm 657213700Smm Language fixes for man pages. 658213700Smm 659213700Smm Thanks to A. Costa and Jonathan Nieder. 660213700Smm 661213700Smmcommit ce1f0deafe8504e1492bf1b1efb3e3ec950b1a2b 662213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 663213700SmmDate: Tue Jul 27 20:47:12 2010 +0300 664213700Smm 665213700Smm Windows: Add a note about building a Git repository snapshot 666213700Smm 667213700Smmcommit 507a4a4dea1e5462f12f7ed4b076c34e02054a38 668213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 669213700SmmDate: Tue Jul 27 20:45:03 2010 +0300 670213700Smm 671213700Smm Windows: build.sh is a bash script so name it correctly. 672213700Smm 673213700Smmcommit b1cbfd40f049a646a639eb78a3e41e9e3ef73339 674213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 675213700SmmDate: Tue Jul 27 20:27:32 2010 +0300 676213700Smm 677213700Smm Windows: Don't strip liblzma.a too much. 678213700Smm 679213700Smmcommit a540198ffb25fad36380c5e92ac20c2d28eec46a 680213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 681213700SmmDate: Tue Jul 13 20:07:26 2010 +0300 682213700Smm 683213700Smm Updated THANKS. 684213700Smm 685213700Smmcommit bab0f01ed931f606b4675aa9f9331a17cec09bad 686213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 687213700SmmDate: Tue Jul 13 19:55:50 2010 +0300 688213700Smm 689213700Smm Add two simple example programs. 690213700Smm 691213700Smm Hopefully these help a bit when learning the basics 692213700Smm of liblzma API. I plan to write detailed examples about 693213700Smm both basic and advanced features with lots of comments, 694213700Smm but these two examples are good have right now. 695213700Smm 696213700Smm The examples were written by Daniel Mealha Cabrita. Thanks. 697213700Smm 698213700Smmcommit c15c42abb3c8c6e77c778ef06c97a4a10b8b5d00 699213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 700213700SmmDate: Tue Jun 15 14:06:29 2010 +0300 701213700Smm 702213700Smm Add --no-adjust. 703213700Smm 704213700Smmcommit 2130926dd1c839280358172dfadd8d3054bde2b4 705213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 706213700SmmDate: Fri Jun 11 21:51:32 2010 +0300 707213700Smm 708213700Smm Updated THANKS. 709213700Smm 710213700Smmcommit bc612d0e0c9e4504c59d49168e87a7ae3e458443 711213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 712213700SmmDate: Fri Jun 11 21:48:32 2010 +0300 713213700Smm 714213700Smm Clarify the description of the default memlimit in the man page. 715213700Smm 716213700Smm Thanks to Denis Excoffier. 717213700Smm 718213700Smmcommit e1b6935d60a00405e6b5b455a3426d2248cc926c 719213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 720213700SmmDate: Fri Jun 11 21:43:28 2010 +0300 721213700Smm 722213700Smm Fix string to uint64_t conversion. 723213700Smm 724213700Smm Thanks to Denis Excoffier for the bug report. 725213700Smm 726213700Smmcommit 3e49c8acb0f5312948eddb2342dbb5802d4571d0 727213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 728213700SmmDate: Fri Jun 11 10:40:28 2010 +0300 729213700Smm 730213700Smm Put the git commit to the filename in mydist rule. 731213700Smm 732213700Smmcommit d8b41eedce486d400f701b757b7b5e4e32276618 733213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 734213700SmmDate: Wed Jun 2 23:13:55 2010 +0300 735213700Smm 736213700Smm Fix compiling with -Werror. 737213700Smm 738213700Smmcommit b5fbab6123a39c9a55cd5d7af410e9aae067d5f8 739213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 740213700SmmDate: Wed Jun 2 23:09:22 2010 +0300 741213700Smm 742213700Smm Silence a bogus Valgrind warning. 743213700Smm 744213700Smm When using -O2 with GCC, it liked to swap two comparisons 745213700Smm in one "if" statement. It's otherwise fine except that 746213700Smm the latter part, which is seemingly never executed, got 747213700Smm executed (nothing wrong with that) and then triggered 748213700Smm warning in Valgrind about conditional jump depending on 749213700Smm uninitialized variable. A few people find this annoying 750213700Smm so do things a bit differently to avoid the warning. 751213700Smm 752213700Smmcommit 29a7b250e685852f2f97615493ec49acaf528623 753213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 754213700SmmDate: Wed Jun 2 21:32:12 2010 +0300 755213700Smm 756213700Smm Fix a Windows-specific FIXME in signal handling code. 757213700Smm 758213700Smmcommit e89d987056cee7d4e279be3ef3a6cc690bfc0e6d 759213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 760213700SmmDate: Wed Jun 2 17:46:58 2010 +0300 761213700Smm 762213700Smm Adjust SA_RESTART workaround. 763213700Smm 764213700Smm I want to get a bug report if something else than 765213700Smm DJGPP lacks SA_RESTART. 766213700Smm 767213700Smmcommit e243145c84ab5c3be8259fd486ead0de5235b3f0 768213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 769213700SmmDate: Tue Jun 1 16:02:30 2010 +0300 770213700Smm 771213700Smm xz man page updates. 772213700Smm 773213700Smm - Concatenating .xz files and padding 774213700Smm - List mode 775213700Smm - Robot mode 776213700Smm - A few examples (but many more are needed) 777213700Smm 778213700Smmcommit ce6dc3c0a891f23a862f80ec08d3b6f0beb2a562 779213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 780213700SmmDate: Tue Jun 1 15:51:44 2010 +0300 781213700Smm 782213700Smm Major update to xz --list. 783213700Smm 784213700Smmcommit 905e54804a899e4ad526d38fdba7e803ab9b71bd 785213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 786213700SmmDate: Tue Jun 1 14:13:03 2010 +0300 787213700Smm 788213700Smm Rename message_filters_get() to message_filters_to_str(). 789213700Smm 790213700Smmcommit 4b346ae8af20045027ae5efb068c6d69da3324d2 791213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 792213700SmmDate: Tue Jun 1 14:09:12 2010 +0300 793213700Smm 794213700Smm Fix a comment. 795213700Smm 796213700Smmcommit 07dc34f6da45c9ab757dad7fd5eef522ad27d296 797213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 798213700SmmDate: Thu May 27 16:17:42 2010 +0300 799213700Smm 800213700Smm Fix lzma_block_compressed_size(). 801213700Smm 802213700Smmcommit 44d70cb154225e47eebf15a3cfbdf3794cbb4593 803213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 804213700SmmDate: Thu May 27 14:32:51 2010 +0300 805213700Smm 806213700Smm Take Cygwin into account in some #if lines. 807213700Smm 808213700Smm This change is no-op, but good to have just in case 809213700Smm for the future. 810213700Smm 811213700Smmcommit a334348dc02803241cf4e0a539eecdc0e7ad2cc7 812213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 813213700SmmDate: Thu May 27 13:42:44 2010 +0300 814213700Smm 815213700Smm Remove references to the Subblock filter in xz and tests. 816213700Smm 817213700Smm Thanks to Jonathan Nieder. 818213700Smm 819213700Smmcommit 70e5e2f6a7084e6af909deee88ceac2f6efa7893 820213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 821213700SmmDate: Thu May 27 13:35:36 2010 +0300 822213700Smm 823213700Smm Remove unused chunk_size.c. 824213700Smm 825213700Smm Thanks to Jonathan Nieder for the reminder. 826213700Smm 827213700Smmcommit 01a414eaf4be6352c06b48001b041b47e8202faa 828213700SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 829213700SmmDate: Thu May 27 02:31:33 2010 -0500 830213700Smm 831213700Smm Use my_min() instead of MIN() in src/xz/list.c 832213700Smm 833213700Smm This should have been done in 834213700Smm 920a69a8d8e4203c5edddd829d932130eac188ea. 835213700Smm 836213700Smmcommit 920a69a8d8e4203c5edddd829d932130eac188ea 837213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 838213700SmmDate: Wed May 26 10:36:46 2010 +0300 839213700Smm 840213700Smm Rename MIN() and MAX() to my_min() and my_max(). 841213700Smm 842213700Smm This should avoid some minor portability issues. 843213700Smm 844213700Smmcommit 019ae27c24d0c694545a6a46f8b9fb552198b015 845213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 846213700SmmDate: Wed May 26 10:30:20 2010 +0300 847213700Smm 848213700Smm Fix compilation of debug/known_sizes.c. 849213700Smm 850213700Smmcommit 98a4856a6ea84f79c790057a6eb89a25bc45b074 851213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 852213700SmmDate: Wed May 26 10:28:54 2010 +0300 853213700Smm 854213700Smm Remove references to Subblock filter in debug/sync_flush.c. 855213700Smm 856213700Smmcommit 703d2c33c095c41ae0693ee8c27c45e3847e4535 857213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 858213700SmmDate: Wed May 26 10:16:57 2010 +0300 859213700Smm 860213700Smm Better #error message. 861213700Smm 862213700Smmcommit d8a55c48b39703dd83f11089ad01e1ff2ac102e0 863213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 864213700SmmDate: Wed May 26 09:55:47 2010 +0300 865213700Smm 866213700Smm Remove the Subblock filter code for now. 867213700Smm 868213700Smm The spec isn't finished and the code didn't compile anymore. 869213700Smm It won't be included in XZ Utils 5.0.0. It's easy to get it 870213700Smm back once the spec is done. 871213700Smm 872213700Smmcommit b6377fc990f9b8651149cae0fecb8b9c5904e26d 873213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 874213700SmmDate: Sun May 16 18:42:22 2010 +0300 875213700Smm 876213700Smm Split message_filters(). 877213700Smm 878213700Smm message_filters_to_str() converts the filter chain to 879213700Smm a string. message_filters_show() replaces the original 880213700Smm message_filters(). 881213700Smm 882213700Smm uint32_to_optstr() was also added to show the dictionary 883213700Smm size in nicer format when possible. 884213700Smm 885213700Smmcommit d9986db782d6cf0f314342127280519339378fa0 886213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 887213700SmmDate: Fri May 14 23:17:20 2010 +0300 888213700Smm 889213700Smm Omit lzma_restrict from the API headers. 890213700Smm 891213700Smm It isn't really useful so omitting it makes things 892213700Smm shorter and slightly more readable. 893213700Smm 894213700Smmcommit 0d3489efca0a723dca0394809fa3e6170843af4b 895213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 896213700SmmDate: Mon May 10 19:57:24 2010 +0300 897213700Smm 898213700Smm Updated INSTALL. 899213700Smm 900213700Smmcommit 3fb3d594a2b53886adee161b6261e92277f05f7c 901213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 902213700SmmDate: Mon May 10 19:54:52 2010 +0300 903213700Smm 904213700Smm Updated THANKS. 905213700Smm 906213700Smmcommit 6548e304657e77d3a972053db3c41c5daf591113 907213700SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 908213700SmmDate: Mon May 10 19:54:15 2010 +0300 909213700Smm 910213700Smm Updates to tuklib_physmem and tuklib_cpucores. 911213700Smm 912213700Smm Don't use #error to generate compile error, because some 913213700Smm compilers actually don't take it as an error. This fixes 914213700Smm tuklib_physmem on IRIX. 915213700Smm 916213700Smm Fix incorrect error check for sysconf() return values. 917213700Smm 918213700Smm Add AIX, HP-UX, and Tru64 specific code to detect the 919213700Smm amount RAM. 920213700Smm 921213700Smm Add HP-UX specific code to detect the number of CPU cores. 922213700Smm 923213700Smm Thanks a lot to Peter O'Gorman for initial patches, 924213700Smm testing, and debugging these fixes. 925213700Smm 926207753Smmcommit a290cfee3e23f046889c022aa96b4eca2016fdda 927207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 928207753SmmDate: Mon Apr 12 21:55:56 2010 +0300 929207753Smm 930207753Smm Show both elapsed time and estimated remaining time in xz -v. 931207753Smm 932207753Smm The extra space for showing both has been taken from the 933207753Smm sizes field. If the sizes grow big, bigger units than MiB 934207753Smm will be used. It makes it slightly difficult to see that 935207753Smm progress is still happening with huge files, but it should 936207753Smm be OK in practice. 937207753Smm 938207753Smm Thanks to Trent W. Buck for <http://bugs.debian.org/574583> 939207753Smm and Jonathan Nieder for suggestions how to fix it. 940207753Smm 941207753Smmcommit a1f7a986b8d708f9290da9799ca1b8d7082fad3e 942207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 943207753SmmDate: Wed Mar 31 16:47:25 2010 +0300 944207753Smm 945207753Smm Add a simple tip to faq.txt about tar and xz. 946207753Smm 947207753Smm Thanks to Gilles Espinasse. 948207753Smm 949207753Smmcommit c737eec91d200d730aa82662affd6b06ebb0bff0 950207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 951207753SmmDate: Mon Mar 22 21:03:03 2010 +0200 952207753Smm 953207753Smm Updated THANKS. 954207753Smm 955207753Smmcommit f4b2b52624b802c786e4e2a8eb6895794dd93b24 956207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 957207753SmmDate: Sun Mar 7 19:52:25 2010 +0200 958207753Smm 959207753Smm Fix xzgrep to not break if filenames have spaces or quotes. 960207753Smm 961207753Smm Thanks to someone who reported the bug on IRC. 962207753Smm 963207753Smmcommit cf38da00a140bd3bd65b192390ae5553380fd774 964207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 965207753SmmDate: Sun Mar 7 13:59:32 2010 +0200 966207753Smm 967207753Smm Treat all integer multiplier suffixes as base-2. 968207753Smm 969207753Smm Originally both base-2 and base-10 were supported, but since 970207753Smm there seems to be little need for base-10 in XZ Utils, treat 971207753Smm everything as base-2 and also be more relaxed about the case 972207753Smm of the first letter of the suffix. Now xz will accept e.g. 973207753Smm KiB, Ki, k, K, kB, and KB, and interpret them all as 1024. The 974207753Smm recommended spelling of the suffixes are still KiB, MiB, and GiB. 975207753Smm 976207753Smmcommit 00fc1211ae7b687ac912098f4479112059deccbd 977207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 978207753SmmDate: Sun Mar 7 13:50:23 2010 +0200 979207753Smm 980207753Smm Consistently round up the memory usage limit in messages. 981207753Smm 982207753Smm It still feels a bit wrong to round 1 byte to 1 MiB but 983207753Smm at least it is now done consistently so that the same 984207753Smm byte value is always rounded the same way to MiB. 985207753Smm 986207753Smmcommit 9886d436ff5615fc70eef32ff757b1e934069621 987207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 988207753SmmDate: Sun Mar 7 13:34:34 2010 +0200 989207753Smm 990207753Smm Change the default of --enable-assume-ram from 32 to 128 MiB. 991207753Smm 992207753Smm This is to allow files created with "xz -9" to be decompressed 993207753Smm if the amount of RAM cannot be determined. 994207753Smm 995207753Smmcommit 2672bcc9f85ba28ff648e092e9eb4cd9e69ce418 996207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 997207753SmmDate: Sun Mar 7 13:29:28 2010 +0200 998207753Smm 999207753Smm Increase the default memory usage limit on "low-memory" systems. 1000207753Smm 1001207753Smm Previously the default limit was always 40 % of RAM. The 1002207753Smm new limit is a little bit more complex: 1003207753Smm 1004207753Smm - If 40 % of RAM is at least 80 MiB, 40 % of RAM is used 1005207753Smm as the limit. 1006207753Smm 1007207753Smm - If 80 % of RAM is over 80 MiB, 80 MiB is used as the limit. 1008207753Smm 1009207753Smm - Otherwise 80 % of RAM is used as the limit. 1010207753Smm 1011207753Smm This should make it possible to decompress files created with 1012207753Smm "xz -9" on more systems. Swapping is generally more expected 1013207753Smm on systems with less RAM, so higher default limit on them 1014207753Smm shouldn't cause too bad surprises in terms of heavy swapping. 1015207753Smm Instead, the higher default limit should reduce the number of 1016207753Smm bad surprises when it used to prevent decompression of files 1017207753Smm created with "xz -9". The DoS prevention system shouldn't be 1018207753Smm a DoS itself. 1019207753Smm 1020207753Smm Note that even with the new default limit, a system with 64 MiB 1021207753Smm RAM cannot decompress files created with "xz -9" without user 1022207753Smm overriding the limit. This should be OK, because if xz is going 1023207753Smm to need more memory than the system has RAM, it will run very 1024207753Smm very slowly and thus it's good that user has to override the limit 1025207753Smm in that case. 1026207753Smm 1027207753Smmcommit 5527b7269a997e7f335d60f237a64bbf225d9dc7 1028207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1029207753SmmDate: Sat Mar 6 21:36:19 2010 +0200 1030207753Smm 1031207753Smm Updated THANKS. 1032207753Smm 1033207753Smmcommit d0d1c51aea4351288a7e533cce28cb7f852f6b05 1034207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1035207753SmmDate: Sat Mar 6 21:17:20 2010 +0200 1036207753Smm 1037207753Smm Fix missing initialization in lzma_strm_init(). 1038207753Smm 1039207753Smm With bad luck, lzma_code() could return LZMA_BUF_ERROR 1040207753Smm when it shouldn't. 1041207753Smm 1042207753Smm This has been here since the early days of liblzma. 1043207753Smm It got triggered by the modifications made to the xz 1044207753Smm tool in commit 18c10c30d2833f394cd7bce0e6a821044b15832f 1045207753Smm but only when decompressing .lzma files. Somehow I managed 1046207753Smm to miss testing that with Valgrind earlier. 1047207753Smm 1048207753Smm This fixes <http://bugs.gentoo.org/show_bug.cgi?id=305591>. 1049207753Smm Thanks to Rafa�� Mu��y��o for helping to debug it on IRC. 1050207753Smm 1051207753Smmcommit eb7d51a3faf9298c0c7aa9aaeae1023dcf9e37ea 1052207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1053207753SmmDate: Fri Feb 12 13:16:15 2010 +0200 1054207753Smm 1055207753Smm Collection of language fixes to comments and docs. 1056207753Smm 1057207753Smm Thanks to Jonathan Nieder. 1058207753Smm 1059207753Smmcommit 4785f2021aa6a23f1caf724fcc823e562584f225 1060207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1061207753SmmDate: Fri Feb 12 12:41:20 2010 +0200 1062207753Smm 1063207753Smm Fix jl -> jb in ASM files. 1064207753Smm 1065207753Smmcommit 6b50c9429bf85521d355adc61745d06ee017f8c8 1066207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1067207753SmmDate: Fri Feb 12 12:31:22 2010 +0200 1068207753Smm 1069207753Smm Use __APPLE__ instead of __MACH__ in ASM files. 1070207753Smm 1071207753Smm This allows the files to work on HURD. 1072207753Smm 1073207753Smm Thanks to Jonathan Nieder. 1074207753Smm 1075207753Smmcommit 6503fde658a5cdbdd907a788865470dd64771601 1076207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1077207753SmmDate: Sun Feb 7 19:48:06 2010 +0200 1078207753Smm 1079207753Smm Subtle change to liblzma Block handling API. 1080207753Smm 1081207753Smm lzma_block.version has to be initialized even for 1082207753Smm lzma_block_header_decode(). This way a future version 1083207753Smm of liblzma won't allocate memory in a way that an old 1084207753Smm application doesn't know how to free it. 1085207753Smm 1086207753Smm The subtlety of this change is that all current apps 1087207753Smm using lzma_block_header_decode() will keep working for 1088207753Smm now, because the only possible version value is zero, 1089207753Smm and lzma_block_header_decode() unconditionally sets the 1090207753Smm version to zero even now. Unless fixed, these apps will 1091207753Smm break in the future if a new version of the Block options 1092207753Smm is ever needed. 1093207753Smm 1094207753Smmcommit dd7c3841ff78cb94ce02b0220c6e4748460970f7 1095207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1096207753SmmDate: Tue Feb 2 11:50:11 2010 +0200 1097207753Smm 1098207753Smm Fix wrong assertion. 1099207753Smm 1100207753Smm This was added in 455e68c030fde8a8c2f5e254c3b3ab9489bf3735. 1101207753Smm 1102207753Smmcommit 9d67588c1597849504a3e5ac8bf6f06e7d2ee8be 1103207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1104207753SmmDate: Mon Feb 1 22:48:42 2010 +0200 1105207753Smm 1106207753Smm Updated TODO. 1107207753Smm 1108207753Smmcommit fef6333f52c8801308c3b78acb7942988541d137 1109207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1110207753SmmDate: Mon Feb 1 22:47:54 2010 +0200 1111207753Smm 1112207753Smm Fix typos in comments. 1113207753Smm 1114207753Smmcommit 455e68c030fde8a8c2f5e254c3b3ab9489bf3735 1115207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1116207753SmmDate: Mon Feb 1 22:46:56 2010 +0200 1117207753Smm 1118207753Smm Fix signal handling for --list. 1119207753Smm 1120207753Smmcommit 82220a149015616f75641ee8bbea415137535b9b 1121207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1122207753SmmDate: Mon Feb 1 11:44:45 2010 +0200 1123207753Smm 1124207753Smm Fix compression of symlinks with --force. 1125207753Smm 1126207753Smm xz --force accepted symlinks, but didn't remove 1127207753Smm them after successful compression. Instead, an error 1128207753Smm message was displayed. 1129207753Smm 1130207753Smmcommit d4da177d5ba3d2ef7323a6f1e06ca16e0478810e 1131207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1132207753SmmDate: Mon Feb 1 10:20:57 2010 +0200 1133207753Smm 1134207753Smm Fix a comment. 1135207753Smm 1136207753Smmcommit f9dd797a423a148903cf345b4146cb1fe1eab11d 1137207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1138207753SmmDate: Sun Jan 31 23:43:54 2010 +0200 1139207753Smm 1140207753Smm Updated THANKS. 1141207753Smm 1142207753Smmcommit ee5ddb8b28419fe4923ded5c18a50570a762dcab 1143207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1144207753SmmDate: Sun Jan 31 23:41:29 2010 +0200 1145207753Smm 1146207753Smm Updated TODO. 1147207753Smm 1148207753Smmcommit 11936ad3f5a2e97bda3463c7a56a2f4bb9265ea6 1149207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1150207753SmmDate: Sun Jan 31 23:35:04 2010 +0200 1151207753Smm 1152207753Smm Mention TODO in README. 1153207753Smm 1154207753Smmcommit 2901a8e7e82af05675b8cd8758a8ceddb111359f 1155207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1156207753SmmDate: Sun Jan 31 23:31:14 2010 +0200 1157207753Smm 1158207753Smm Updated INSTALL. 1159207753Smm 1160207753Smmcommit 8884e16864ba53fb4b58623d7537d7ef30c28e11 1161207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1162207753SmmDate: Sun Jan 31 23:28:51 2010 +0200 1163207753Smm 1164207753Smm Revise the Windows build files. 1165207753Smm 1166207753Smm The old Makefile + config.h was deleted, because it 1167207753Smm becomes outdated too easily and building with the 1168207753Smm Autotools based build system works fine even on Windows. 1169207753Smm 1170207753Smm windows/build.sh hasn't got much testing, but it should 1171207753Smm work to build 32-bit x86 and x86-64 versions of XZ Utils 1172207753Smm using MSYS, MinGW or MinGW-w32, and MinGW-w64. 1173207753Smm 1174207753Smm windows/INSTALL-Windows.txt describes what packages are 1175207753Smm needed and how to install them. 1176207753Smm 1177207753Smm windows/README-Windows.txt is a readme file for the binary 1178207753Smm package that build.sh hopefully builds. 1179207753Smm 1180207753Smm There are no instructions about using Autotools for now, 1181207753Smm so those using a git snapshot may want to run 1182207753Smm "autoreconf -fi && ./configure && make mydist" on a UN*X 1183207753Smm box and then copy the resulting .tar.gz to a Windows. 1184207753Smm 1185207753Smmcommit 34eb5e201d62f7f46bbe6fe97cfe08cb31b3b88c 1186207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1187207753SmmDate: Sun Jan 31 19:52:38 2010 +0200 1188207753Smm 1189207753Smm Select the default integrity check type at runtime. 1190207753Smm 1191207753Smm Previously it was set statically to CRC64 or CRC32 1192207753Smm depending on options passed to the configure script. 1193207753Smm 1194207753Smmcommit 96a4f840e3b9ca5c81e5711ff9c267b194f93ef1 1195207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1196207753SmmDate: Sun Jan 31 18:17:50 2010 +0200 1197207753Smm 1198207753Smm Improve displaying of the memory usage limit. 1199207753Smm 1200207753Smmcommit b3cc4d8edd68a0250cc69680c99b9f7343f99cf2 1201207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1202207753SmmDate: Sun Jan 31 12:53:56 2010 +0200 1203207753Smm 1204207753Smm Don't use uninitialized sigset_t. 1205207753Smm 1206207753Smm If signal handlers haven't been established, then it's 1207207753Smm useless to try to block them, especially since the sigset_t 1208207753Smm used for blocking hasn't been initialized yet. 1209207753Smm 1210207753Smmcommit 231c3c7098f1099a56abb8afece76fc9b8699f05 1211207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1212207753SmmDate: Sun Jan 31 12:01:54 2010 +0200 1213207753Smm 1214207753Smm Delay opening the destionation file and other fixes. 1215207753Smm 1216207753Smm The opening of the destination file is now delayed a little. 1217207753Smm The coder is initialized, and if decompressing, the memory 1218207753Smm usage of the first Block compared against the memory 1219207753Smm usage limit before the destination file is opened. This 1220207753Smm means that if --force was used, the old "target" file won't 1221207753Smm be deleted so easily when something goes wrong very early. 1222207753Smm Thanks to Mark K for the bug report. 1223207753Smm 1224207753Smm The above fix required some changes to progress message 1225207753Smm handling. Now there is a separate function for setting and 1226207753Smm printing the filename. It is used also in list.c. 1227207753Smm 1228207753Smm list_file() now handles stdin correctly (gives an error). 1229207753Smm 1230207753Smm A useless check for user_abort was removed from file_io.c. 1231207753Smm 1232207753Smmcommit 0dbd0641db99d5e73d51d04ce7a71e52dc6b4105 1233207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1234207753SmmDate: Fri Jan 29 22:48:04 2010 +0200 1235207753Smm 1236207753Smm Add list.h to src/xz/Makefile.am. 1237207753Smm 1238207753Smm This should have been already in 1239207753Smm 0bc9eab243dee3be764b3530433a7fcdc3f7c6a1. 1240207753Smm 1241207753Smmcommit b4b1a56e0cbd597157858264f5c7189201ac9018 1242207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1243207753SmmDate: Fri Jan 29 13:24:27 2010 +0200 1244207753Smm 1245207753Smm Add lzmainfo.1 to manfiles list to convert to .txt and .pdf. 1246207753Smm 1247207753Smmcommit 5574d64e03ad3a3d6e00e4b0d3e81c7b5529ec95 1248207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1249207753SmmDate: Wed Jan 27 16:42:11 2010 +0200 1250207753Smm 1251207753Smm Silence two compiler warnings on DOS-like systems. 1252207753Smm 1253207753Smmcommit b063cc34a30a4edf109343ff373b2b62b8ca72d3 1254207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1255207753SmmDate: Wed Jan 27 13:31:03 2010 +0200 1256207753Smm 1257207753Smm Use PACKAGE_URL instead of custom PACKAGE_HOMEPAGE. 1258207753Smm 1259207753Smmcommit 38b8035b5cb5f56457c5fa5a891d6900fcf5984f 1260207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1261207753SmmDate: Tue Jan 26 23:37:46 2010 +0200 1262207753Smm 1263207753Smm Add a missing space to an error message. 1264207753Smm 1265207753Smm Thanks to Robert Readman. 1266207753Smm 1267207753Smmcommit e5496f9628ff5979392a80421d0b63a4de8015b4 1268207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1269207753SmmDate: Tue Jan 26 22:53:37 2010 +0200 1270207753Smm 1271207753Smm Use past tense in error message in io_unlink(). 1272207753Smm 1273207753Smm Added a note to translators too. 1274207753Smm 1275207753Smm Thanks to Robert Readman. 1276207753Smm 1277207753Smmcommit d9a9800597ea540090e434132c3b511217df0a2b 1278207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1279207753SmmDate: Tue Jan 26 15:42:24 2010 +0200 1280207753Smm 1281207753Smm Fix too small static buffer in util.c. 1282207753Smm 1283207753Smm This was introduced in 1284207753Smm 0dd6d007669b946543ca939a44243833c79e08f4 two days ago. 1285207753Smm 1286207753Smmcommit d0b4bbf5da068503c099cd456e294d7673548cc0 1287207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1288207753SmmDate: Tue Jan 26 14:46:43 2010 +0200 1289207753Smm 1290207753Smm Minor comment fix. 1291207753Smm 1292207753Smmcommit 0bc9eab243dee3be764b3530433a7fcdc3f7c6a1 1293207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1294207753SmmDate: Sun Jan 24 23:50:54 2010 +0200 1295207753Smm 1296207753Smm Add initial version of xz --list. 1297207753Smm 1298207753Smm This is a bit rough but should be useful for basic things. 1299207753Smm Ideas (with detailed examples) about the output format are 1300207753Smm welcome. 1301207753Smm 1302207753Smm The output of --robot --list is not necessarily stable yet, 1303207753Smm although I don't currently have any plans about changing it. 1304207753Smm 1305207753Smm The man page hasn't been updated yet. 1306207753Smm 1307207753Smmcommit df254ce03be016e217b511e7acd5d493f9929ca5 1308207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1309207753SmmDate: Sun Jan 24 22:46:11 2010 +0200 1310207753Smm 1311207753Smm Add io_pread(). 1312207753Smm 1313207753Smm It will be used by --list. 1314207753Smm 1315207753Smmcommit ef68dd4a92976276304de2aedfbe34ae91a86abb 1316207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1317207753SmmDate: Sun Jan 24 22:45:14 2010 +0200 1318207753Smm 1319207753Smm Set LC_NUMERIC=C when --robot is used. 1320207753Smm 1321207753Smm It is to ensure that floating point numbers 1322207753Smm will always have a dot as the decimal separator. 1323207753Smm 1324207753Smmcommit 0dd6d007669b946543ca939a44243833c79e08f4 1325207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1326207753SmmDate: Sun Jan 24 16:57:40 2010 +0200 1327207753Smm 1328207753Smm Some improvements to printing sizes in xz. 1329207753Smm 1330207753Smmcommit 2a98fdffd68c66371279c211c29153c808ad5c1d 1331207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1332207753SmmDate: Wed Jan 20 22:02:35 2010 +0200 1333207753Smm 1334207753Smm Fix a typo in README. 1335207753Smm 1336207753Smm Thanks to R. Bijker. 1337207753Smm 1338207753Smmcommit 07a11dad44e041b01dcfc73e8d4e00731158c06d 1339207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1340207753SmmDate: Sun Jan 17 11:59:54 2010 +0200 1341207753Smm 1342207753Smm Updated windows/Makefile. 1343207753Smm 1344207753Smm Thanks to Dan Shechter for the patch. 1345207753Smm 1346207753Smm It is likely that windows/Makefile will be removed 1347207753Smm completely, because Autotols based build nowadays 1348207753Smm works well with both 32-bit and 64-bit MinGW (I 1349207753Smm just need to update the docs). 1350207753Smm 1351207753Smmcommit 37f31ead9d2b4e467df11450cf29ed7d7e3e25f3 1352207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1353207753SmmDate: Fri Jan 15 11:05:11 2010 +0200 1354207753Smm 1355207753Smm Update the xz man page to match the previous two commits. 1356207753Smm 1357207753Smmcommit 3ffd5d81a43210c8da56da5c5b3637d3f8bc63c7 1358207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1359207753SmmDate: Wed Jan 13 19:10:25 2010 +0200 1360207753Smm 1361207753Smm Don't read compressed data from a terminal or write it 1362207753Smm to a terminal even if --force is specified. 1363207753Smm 1364207753Smm It just seems more reasonable this way. 1365207753Smm 1366207753Smm The new behavior matches bzip2. The old one matched gzip. 1367207753Smm 1368207753Smmcommit 23ac2c44c3ac76994825adb7f9a8f719f78b5ee4 1369207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1370207753SmmDate: Wed Jan 13 18:12:40 2010 +0200 1371207753Smm 1372207753Smm Don't compress or decompress special files unless writing 1373207753Smm to stdout even if --force is used. 1374207753Smm 1375207753Smm --force will still enable compression of symlinks, but only 1376207753Smm in case they point to a regular file. 1377207753Smm 1378207753Smm The new way simply seems more reasonable. It matches gzip's 1379207753Smm behavior while the old one matched bzip2's behavior. 1380207753Smm 1381207753Smmcommit cee12aa852ec0902983dc1f153346ef750157fb9 1382207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1383207753SmmDate: Tue Jan 12 16:30:33 2010 +0200 1384207753Smm 1385207753Smm Updated THANKS. 1386207753Smm 1387207753Smmcommit 153c7740c54b3c90129dbd3d6153ac1303c4d605 1388207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1389207753SmmDate: Tue Jan 12 16:18:14 2010 +0200 1390207753Smm 1391207753Smm Add IRIX-specific code to tuklib_physmem and tuklib_cpucores. 1392207753Smm 1393207753Smm This is untested but it will get tested soon and, if needed, 1394207753Smm fixed before 5.0.0. 1395207753Smm 1396207753Smm Thanks to Stuart Shelton. 1397207753Smm 1398207753Smmcommit 8ea8dc754a7a5bc2d60db1eac201839cabdab6a1 1399207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1400207753SmmDate: Fri Jan 1 00:29:10 2010 +0200 1401207753Smm 1402207753Smm Fix _memconfig() functions. 1403207753Smm 1404207753Smm This affects lzma_memusage() and lzma_memlimit_get(). 1405207753Smm 1406207753Smmcommit 1a7ec87c8ee61dfc2e496d2e1fb7ab0939804691 1407207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1408207753SmmDate: Thu Dec 31 22:45:53 2009 +0200 1409207753Smm 1410207753Smm Revised the Index handling code. 1411207753Smm 1412207753Smm This breaks API and ABI but most apps are not affected 1413207753Smm since most apps don't use this part of the API. You will 1414207753Smm get a compile error if you are using anything that got 1415207753Smm broken. 1416207753Smm 1417207753Smm Summary of changes: 1418207753Smm 1419207753Smm - Ability to store Stream Flags, which are needed 1420207753Smm for random-access reading in multi-Stream files. 1421207753Smm 1422207753Smm - Separate function to set size of Stream Padding. 1423207753Smm 1424207753Smm - Iterator structure makes it possible to read the same 1425207753Smm lzma_index from multiple threads at the same time. 1426207753Smm 1427207753Smm - A lot faster code to locate Blocks. 1428207753Smm 1429207753Smm - Removed lzma_index_equal() without adding anything 1430207753Smm to replace it. I don't know what it should do exactly 1431207753Smm with the new features and what actually needs this 1432207753Smm function in the first place other than test_index.c, 1433207753Smm which now has its own code to compare lzma_indexes. 1434207753Smm 1435207753Smmcommit f29997a846e673cb3b8cbd57de47ed313b3978bb 1436207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1437207753SmmDate: Thu Dec 31 21:13:25 2009 +0200 1438207753Smm 1439207753Smm Remove c-format tag in cs.po. 1440207753Smm 1441207753Smm It was fixed in the C code earlier. 1442207753Smm 1443207753Smmcommit 097bad000363e0bf29f8274ad2d7ab59f7dbf644 1444207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1445207753SmmDate: Thu Dec 31 21:11:05 2009 +0200 1446207753Smm 1447207753Smm Add missing lzma_nothrow in filter.h. 1448207753Smm 1449207753Smmcommit b56cb1fc31fa2381f92eefc040df85667048d626 1450207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1451207753SmmDate: Wed Dec 9 18:13:44 2009 +0200 1452207753Smm 1453207753Smm Remove redefinition of _(msgid) macro from lzmainfo.c. 1454207753Smm 1455207753Smmcommit 171b03febfe09d9fae6ac8be6aa4518bcaf427d2 1456207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 1457207753SmmDate: Tue Dec 8 19:41:57 2009 -0600 1458207753Smm 1459207753Smm update po/.gitignore 1460207753Smm 1461207753Smm Since the *.gmo files are deleted by the maintainer-clean target, 1462207753Smm I assume they are not meant to be tracked. 1463207753Smm 1464207753Smm Also add the other files listed in the Makefile���s clean targets 1465207753Smm (stamp-poT, xz.po, xz.[12].po, *.new.po, xz.mo) to make sure they 1466207753Smm are not accidentally tracked. Most of these are intermediate 1467207753Smm files that would not appear unless a build is interrupted or 1468207753Smm fails. 1469207753Smm 1470207753Smm Split the list of untracked files by origin to make it easier to 1471207753Smm tell if files are missing in the future. 1472207753Smm 1473207753Smm Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> 1474207753Smm 1475207753Smmcommit f7e44c6c11f630519072971b8b07a5729c096c36 1476207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1477207753SmmDate: Wed Dec 9 00:38:55 2009 +0200 1478207753Smm 1479207753Smm Always rely on GCC's auto-import on Windows. 1480207753Smm 1481207753Smm I understood that this is nicer, because then people 1482207753Smm don't need to worry about the LZMA_API_STATIC macro. 1483207753Smm 1484207753Smm Thanks to Charles Wilson and Keith Marshall. 1485207753Smm 1486207753Smmcommit 7b76a3e2336f25088957cba92b0dbd854d9caa3c 1487207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1488207753SmmDate: Mon Dec 7 21:46:53 2009 +0200 1489207753Smm 1490207753Smm Fix file_io.c on DOS-like systems. 1491207753Smm 1492207753Smm The problem was introduced when adding sparse file 1493207753Smm support in 465d1b0d6518c5d980f2db4c2d769f9905bdd902. 1494207753Smm 1495207753Smm Thanks to Charles Wilson. 1496207753Smm 1497207753Smmcommit 0696f5d268362221380e039bad48a86e29067c6a 1498207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1499207753SmmDate: Mon Dec 7 20:54:21 2009 +0200 1500207753Smm 1501207753Smm Add Czech translation. 1502207753Smm 1503207753Smm Thanks to Marek ��ernock��. 1504207753Smm 1505207753Smm Other people planning to translate xz: Note that the 1506207753Smm messages are a little bit in flux still. Translations 1507207753Smm are still welcome, just be prepared to some extra work 1508207753Smm in case there are changes. 1509207753Smm 1510207753Smmcommit 5e817a50d276f0a3607638c1c1d449d50b9aa4e5 1511207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1512207753SmmDate: Mon Dec 7 20:32:08 2009 +0200 1513207753Smm 1514207753Smm Add a note for translators to add a bug reporting address 1515207753Smm for translation bugs. 1516207753Smm 1517207753Smmcommit 6db1c35be9e1e364cdacff6878910e1b7aac2a37 1518207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1519207753SmmDate: Mon Dec 7 20:07:02 2009 +0200 1520207753Smm 1521207753Smm Prevent xgettext from taking one regular string as a C format string. 1522207753Smm 1523207753Smm Thanks to Marek ��ernock��. 1524207753Smm 1525207753Smmcommit e0c2776b6ffbd2b1900fde353aceac734edc93d7 1526207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1527207753SmmDate: Sat Nov 28 17:45:22 2009 +0200 1528207753Smm 1529207753Smm Remove duplicate code in io_open_dest(). 1530207753Smm 1531207753Smm Fix a missing _() in the error message too. 1532207753Smm 1533207753Smmcommit f057a33c6f7c5992389479f2d4feabf2900ba7ee 1534207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1535207753SmmDate: Thu Nov 26 10:11:23 2009 +0200 1536207753Smm 1537207753Smm Typo fix to sysdefs.h. 1538207753Smm 1539207753Smm Thanks to Jonathan Nieder. 1540207753Smm 1541207753Smmcommit 8767b41534eafdf5e742e12190646bf5740b0cdb 1542207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1543207753SmmDate: Thu Nov 26 10:10:36 2009 +0200 1544207753Smm 1545207753Smm Fix a memory leak in test_index.c. 1546207753Smm 1547207753Smm This was introduced in 1548207753Smm bd13b04e202b6f495a68eb0766f97085b7c50a06. 1549207753Smm 1550207753Smm Thanks to Jim Meyering for noticing it. 1551207753Smm 1552207753Smmcommit 919fbaff860acdaa4bcd216500a0b1c960a6db92 1553207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1554207753SmmDate: Wed Nov 25 14:22:19 2009 +0200 1555207753Smm 1556207753Smm Add missing error check to coder.c. 1557207753Smm 1558207753Smm With bad luck this could cause a segfault due to 1559207753Smm reading (but not writing) past the end of the buffer. 1560207753Smm 1561207753Smmcommit bd13b04e202b6f495a68eb0766f97085b7c50a06 1562207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1563207753SmmDate: Wed Nov 25 13:04:10 2009 +0200 1564207753Smm 1565207753Smm Fix bugs in lzma_index_read() and lzma_index_cat(). 1566207753Smm 1567207753Smm lzma_index_read() didn't skip over Stream Padding 1568207753Smm if it was the first record in the Index. 1569207753Smm 1570207753Smm lzma_index_cat() didn't combine small Indexes correctly. 1571207753Smm 1572207753Smm The test suite was updated to check for these bugs. 1573207753Smm 1574207753Smm These bugs didn't affect the xz command line tool or 1575207753Smm most users of liblzma in any way. 1576207753Smm 1577207753Smmcommit 1f196909143b888e062bd9a0c4ba8c34d3019bfa 1578207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1579207753SmmDate: Wed Nov 25 12:52:56 2009 +0200 1580207753Smm 1581207753Smm Index decoder fixes. 1582207753Smm 1583207753Smm The Index decoder code didn't perfectly match the API docs, 1584207753Smm which said that *i will be set to point to the decoded Index 1585207753Smm only after decoding has succeeded. The docs were a bit unclear 1586207753Smm too. 1587207753Smm 1588207753Smm Now the decoder will initially set *i to NULL. *i will be set 1589207753Smm to point to the decoded Index once decoding has succeeded. 1590207753Smm This simplifies applications too, since it avoids dangling 1591207753Smm pointers. 1592207753Smm 1593207753Smmcommit 465d1b0d6518c5d980f2db4c2d769f9905bdd902 1594207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1595207753SmmDate: Wed Nov 25 11:19:20 2009 +0200 1596207753Smm 1597207753Smm Create sparse files by default when decompressing into 1598207753Smm a regular file. 1599207753Smm 1600207753Smm Sparse file creation can be disabled with --no-sparse. 1601207753Smm I don't promise yet that the name of this option won't 1602207753Smm change before 5.0.0. It's possible that the code, that 1603207753Smm checks when it is safe to use sparse output on stdout, 1604207753Smm is not good enough, and a more flexible command line 1605207753Smm option is needed to configure sparse file handling. 1606207753Smm 1607207753Smmcommit 37de544414fc2dc5039471d1002ebd015eb3e627 1608207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1609207753SmmDate: Sun Nov 22 12:43:06 2009 +0200 1610207753Smm 1611207753Smm Updated THANKS. 1612207753Smm 1613207753Smmcommit f1a28b96c900c658fe016852ff62f6c24d1f50fa 1614207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1615207753SmmDate: Sun Nov 22 12:05:33 2009 +0200 1616207753Smm 1617207753Smm Add missing consts to pointer casts. 1618207753Smm 1619207753Smmcommit b9b5c54cd438b3ae47b44cc211b71f3bc53e35ef 1620207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1621207753SmmDate: Sun Nov 22 12:00:30 2009 +0200 1622207753Smm 1623207753Smm Enable assembler code only if it is known to work 1624207753Smm on that operating system. 1625207753Smm 1626207753Smm I'm too lazy to think how to make a good Autoconf test 1627207753Smm for this and it's not that important anyway. 1628207753Smm 1629207753Smm No longer define HAVE_ASM_X86 or HAVE_ASM_X86_64. 1630207753Smm Inline assembler (if any) is used if a macro like 1631207753Smm __i386__ or __x86_64__ is defined. 1632207753Smm 1633207753Smmcommit 0733f4c9994db696420a405810d5f02c79ebc404 1634207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1635207753SmmDate: Sun Nov 22 11:55:03 2009 +0200 1636207753Smm 1637207753Smm Make fastpos.h use tuklib_integer.h instead of bsr.h 1638207753Smm when --enable-small has been specified. 1639207753Smm 1640207753Smmcommit 7ac3985d891dcc5773543f84cc5bce6c14841b12 1641207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1642207753SmmDate: Sun Nov 22 11:52:30 2009 +0200 1643207753Smm 1644207753Smm Update tuklib_integer.h with bit scan functions. 1645207753Smm 1646207753Smm Thanks to Joachim Henke for the original patch. 1647207753Smm 1648207753Smmcommit c74c132f7f79a842c073c66575a4fdb985e4c2e3 1649207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1650207753SmmDate: Fri Nov 20 12:51:19 2009 +0200 1651207753Smm 1652207753Smm Update tuklib_cpucores.m4 and tuklib_physmem.m4 from tuklib, 1653207753Smm which now use AC_CACHE_CHECK. Using the cache variable, 1654207753Smm configure now warns if there is no method to detect the amount 1655207753Smm of RAM and recommends using --enable-assume-ram. 1656207753Smm 1657207753Smmcommit d315ca4930ff96e1428c6021c96f209e1abdd83e 1658207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1659207753SmmDate: Mon Nov 16 18:16:45 2009 +0200 1660207753Smm 1661207753Smm Add support for --info-memory and --robot to xz. 1662207753Smm 1663207753Smm Currently --robot works only with --info-memory and 1664207753Smm --version. --help and --long-help work too, but --robot 1665207753Smm has no effect on them. 1666207753Smm 1667207753Smm Thanks to Jonathan Nieder for the original patches. 1668207753Smm 1669207753Smmcommit e330fb7e6b8162894280c8a3dc22fdc05cd2d85e 1670207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1671207753SmmDate: Sun Nov 15 12:54:45 2009 +0200 1672207753Smm 1673207753Smm Fix wrong indentation caused by incorrect settings 1674207753Smm in the text editor. 1675207753Smm 1676207753Smmcommit 93e418562cf127a9171e87bcd4e9af8e1bfcdae4 1677207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1678207753SmmDate: Sun Nov 15 12:40:17 2009 +0200 1679207753Smm 1680207753Smm Add lzma_physmem(). 1681207753Smm 1682207753Smm I had hoped to keep liblzma as purely a compression 1683207753Smm library as possible (e.g. file I/O will go into 1684207753Smm a different library), but it seems that applications 1685207753Smm linking agaisnt liblzma need some way to determine 1686207753Smm the memory usage limit, and knowing the amount of RAM 1687207753Smm is one reasonable way to help making such decisions. 1688207753Smm 1689207753Smm Thanks to Jonathan Nieder for the original patch. 1690207753Smm 1691207753Smmcommit cf39faca59083d38422058c6c97aa757ea7797d0 1692207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1693207753SmmDate: Sat Nov 14 20:21:19 2009 +0200 1694207753Smm 1695207753Smm Updated THANKS. 1696207753Smm 1697207753Smmcommit 2ddcae247c284cc2f396b6cfdab57790c7588b5f 1698207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1699207753SmmDate: Sat Nov 14 20:20:03 2009 +0200 1700207753Smm 1701207753Smm Some updates to xz man page. 1702207753Smm 1703207753Smmcommit 19b2674f07f8b588dfaf6638396b4b42866d7e23 1704207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1705207753SmmDate: Sat Nov 14 19:51:03 2009 +0200 1706207753Smm 1707207753Smm Fix description of --memory in --long-help. 1708207753Smm 1709207753Smmcommit 2291346f0cccf88e605d84b75c9c5aaaaddb5df8 1710207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1711207753SmmDate: Sat Nov 14 19:45:39 2009 +0200 1712207753Smm 1713207753Smm Update the debug programs so that they compile again. 1714207753Smm 1715207753Smmcommit 418d64a32e8144210f98a810738fed5a897e8367 1716207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1717207753SmmDate: Sat Nov 14 18:59:19 2009 +0200 1718207753Smm 1719207753Smm Fix a design error in liblzma API. 1720207753Smm 1721207753Smm Originally the idea was that using LZMA_FULL_FLUSH 1722207753Smm with Stream encoder would read the filter chain 1723207753Smm from the same array that was used to intialize the 1724207753Smm Stream encoder. Since most apps wouldn't use 1725207753Smm LZMA_FULL_FLUSH, most apps wouldn't need to keep 1726207753Smm the filter chain available after initializing the 1727207753Smm Stream encoder. However, due to my mistake, it 1728207753Smm actually required keeping the array always available. 1729207753Smm 1730207753Smm Since setting the new filter chain via the array 1731207753Smm used at initialization time is not a nice way to do 1732207753Smm it for a couple of reasons, this commit ditches it 1733207753Smm and introduces lzma_filters_update(). This new function 1734207753Smm replaces also the "persistent" flag used by LZMA2 1735207753Smm (and to-be-designed Subblock filter), which was also 1736207753Smm an ugly thing to do. 1737207753Smm 1738207753Smm Thanks to Alexey Tourbin for reminding me about the problem 1739207753Smm that Stream encoder used to require keeping the filter 1740207753Smm chain allocated. 1741207753Smm 1742207753Smmcommit f0bf7634b77263a4dd02b20c71861ab67995da68 1743207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1744207753SmmDate: Sat Oct 17 11:11:58 2009 +0300 1745207753Smm 1746207753Smm Fix wrong function name in the previous commit. 1747207753Smm 1748207753Smm It was meant to be lzma_filters_copy(), not lzma_filters_dup(). 1749207753Smm 1750207753Smmcommit 6d118a0b9def82e96afba7386ec8d7da0b59649f 1751207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1752207753SmmDate: Sat Oct 17 01:47:07 2009 +0300 1753207753Smm 1754207753Smm Add lzma_filters_copy(). 1755207753Smm 1756207753Smm This will be needed internally by liblzma once I fix 1757207753Smm a design mistake in the encoder API. This function may 1758207753Smm be useful to applications too so it's good to export it. 1759207753Smm 1760207753Smmcommit 78e92c18470483e161388e679c1ee556adb3a691 1761207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 1762207753SmmDate: Thu Oct 15 20:44:13 2009 -0500 1763207753Smm 1764207753Smm Escape dashes in xzmore.1 1765207753Smm 1766207753Smm A minus sign is larger, easier to see in a printout, and more 1767207753Smm likely to use the same glyph as ASCII hyphen-minus in a terminal 1768207753Smm than a hyphen. Since broken manual pagers do not find hyphens 1769207753Smm when the user searches for a hyphen-minus, minus signs are also 1770207753Smm easier to search for. So use minus signs instead of hyphens to 1771207753Smm render sample terminal output. 1772207753Smm 1773207753Smmcommit 7b7fe902d98da28e5769e2aa1e0c08c92384f7ee 1774207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1775207753SmmDate: Fri Oct 16 20:35:39 2009 +0300 1776207753Smm 1777207753Smm Mention --check=none in --long-help. It was already in 1778207753Smm the man page though. 1779207753Smm 1780207753Smm Thanks to Jim Meyering for noticing this. 1781207753Smm 1782207753Smmcommit ebfb2c5e1f344e5c6e549b9dedaa49b0749a4a24 1783207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1784207753SmmDate: Sun Oct 4 22:57:12 2009 +0300 1785207753Smm 1786207753Smm Use a tuklib module for integer handling. 1787207753Smm 1788207753Smm This replaces bswap.h and integer.h. 1789207753Smm 1790207753Smm The tuklib module uses <byteswap.h> on GNU, 1791207753Smm <sys/endian.h> on *BSDs and <sys/byteorder.h> 1792207753Smm on Solaris, which may contain optimized code 1793207753Smm like inline assembly. 1794207753Smm 1795207753Smmcommit 29fd321033276261b87da7be5223db33d879a4c7 1796207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1797207753SmmDate: Fri Oct 2 14:35:56 2009 +0300 1798207753Smm 1799207753Smm Add support for --enable-assume-ram=SIZE. 1800207753Smm 1801207753Smmcommit 3782b3fee4812b0dd4ffdfa6563ed49f73060f25 1802207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1803207753SmmDate: Fri Oct 2 11:28:17 2009 +0300 1804207753Smm 1805207753Smm Use unaligned access (if possible) on both endiannesses 1806207753Smm in lz_encoder_hash.h. 1807207753Smm 1808207753Smmcommit c5f68b5cc79085a87f950fea53843e27f328068e 1809207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1810207753SmmDate: Fri Oct 2 11:03:26 2009 +0300 1811207753Smm 1812207753Smm Make liblzma produce the same output on both endiannesses. 1813207753Smm 1814207753Smm Seems that it is a problem in some cases if the same 1815207753Smm version of XZ Utils produces different output on different 1816207753Smm endiannesses, so this commit fixes that problem. The output 1817207753Smm will still vary between different XZ Utils versions, but I 1818207753Smm cannot avoid that for now. 1819207753Smm 1820207753Smm This commit bloatens the code on big endian systems by 1 KiB, 1821207753Smm which should be OK since liblzma is bloated already. ;-) 1822207753Smm 1823207753Smmcommit 4a84d1adfda35e4fb4d41ecf0feb8223b100517a 1824207753SmmAuthor: Mike Frysinger <vapier@gentoo.org> 1825207753SmmDate: Sat Sep 26 12:51:50 2009 -0400 1826207753Smm 1827207753Smm add lzmainfo to gitignore 1828207753Smm 1829207753Smm Signed-off-by: Mike Frysinger <vapier@gentoo.org> 1830207753Smm 1831207753Smmcommit 188a1dcd0cc7867810ed3a55c598d0680922c63b 1832207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1833207753SmmDate: Sun Sep 27 11:53:36 2009 +0300 1834207753Smm 1835207753Smm Updated THANKS. 1836207753Smm 1837207753Smmcommit db9119b9181b307e7ac5d2bae82444d04b902b59 1838207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1839207753SmmDate: Sun Sep 27 11:48:54 2009 +0300 1840207753Smm 1841207753Smm Work around a bug in Interix header files. 1842207753Smm 1843207753Smm Thanks to Markus Duft for the patch. 1844207753Smm 1845207753Smmcommit b3d105e69786a45963176fd2193abe75e05ba738 1846207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1847207753SmmDate: Thu Sep 24 17:50:17 2009 +0300 1848207753Smm 1849207753Smm Fix an error in OpenVMS-specific code. 1850207753Smm 1851207753Smm Thanks to Jouk Jansen. 1852207753Smm 1853207753Smmcommit 5e000ff00d4d01e559397b49eb648ad3f159d496 1854207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1855207753SmmDate: Tue Sep 22 18:59:56 2009 +0300 1856207753Smm 1857207753Smm Added OpenVMS-specific information to INSTALL. 1858207753Smm 1859207753Smmcommit 932b2e204463d70f3eee5b8a1ea5a23bf9d001a4 1860207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1861207753SmmDate: Tue Sep 22 14:03:02 2009 +0300 1862207753Smm 1863207753Smm Better fixes for OpenVMS support. 1864207753Smm 1865207753Smm Thanks to Jouk Jansen. 1866207753Smm 1867207753Smmcommit 4c3630ec4179fe9265407a35c4db1374ffc82372 1868207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1869207753SmmDate: Tue Sep 22 13:40:19 2009 +0300 1870207753Smm 1871207753Smm Avoid non-standard preprocessor construct. 1872207753Smm 1873207753Smm Thanks to Jouk Jansen. 1874207753Smm 1875207753Smmcommit 0deb1bb60addd1306b525e0ac0ad2a84eb0390d9 1876207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1877207753SmmDate: Mon Sep 21 19:50:09 2009 +0300 1878207753Smm 1879207753Smm Make sure that TUKLIB_DOSLIKE doesn't get defined on Cygwin. 1880207753Smm 1881207753Smm Thanks to Charles Wilson. 1882207753Smm 1883207753Smmcommit e599bba4216c0edb8cc8f40adad3a6dba88685f4 1884207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1885207753SmmDate: Sat Sep 19 09:47:30 2009 +0300 1886207753Smm 1887207753Smm Various changes. 1888207753Smm 1889207753Smm Separate a few reusable components from XZ Utils specific 1890207753Smm code. The reusable code is now in "tuklib" modules. A few 1891207753Smm more could be separated still, e.g. bswap.h. 1892207753Smm 1893207753Smm Fix some bugs in lzmainfo. 1894207753Smm 1895207753Smm Fix physmem and cpucores code on OS/2. Thanks to Elbert Pol 1896207753Smm for help. 1897207753Smm 1898207753Smm Add OpenVMS support into physmem. Add a few #ifdefs to ease 1899207753Smm building XZ Utils on OpenVMS. Thanks to Jouk Jansen for the 1900207753Smm original patch. 1901207753Smm 1902207753Smmcommit 49cfc8d392cf535f8dd10233225b1fc726fec9ef 1903207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1904207753SmmDate: Tue Sep 15 21:07:23 2009 +0300 1905207753Smm 1906207753Smm Fix incorrect use of "restrict". 1907207753Smm 1908207753Smmcommit 15ffd675ab7af84592eb1c23b0e9f4699aa0fd8c 1909207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1910207753SmmDate: Sat Sep 12 14:09:17 2009 +0300 1911207753Smm 1912207753Smm Fix GCC version check for nothrow attribute. 1913207753Smm 1914207753Smmcommit 6bfdd3a88a819f04c8f202e7d3c6f88a01c7d224 1915207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1916207753SmmDate: Sat Sep 12 14:08:15 2009 +0300 1917207753Smm 1918207753Smm Updated THANKS. 1919207753Smm 1920207753Smmcommit 4ab7b16b9573bdfa32279e4adadff684d5cd58ac 1921207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1922207753SmmDate: Sat Sep 12 14:07:36 2009 +0300 1923207753Smm 1924207753Smm A few grammar fixes. 1925207753Smm 1926207753Smm Thanks to Christian Weisgerber for pointing out some of these. 1927207753Smm 1928207753Smmcommit 8905a33daadcd2d6557c83c81c490b827d566c94 1929207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1930207753SmmDate: Fri Sep 11 17:08:15 2009 +0300 1931207753Smm 1932207753Smm Updated THANKS. 1933207753Smm 1934207753Smmcommit 68059334ff435300ab1ce2c616b0eee1b0d88dd9 1935207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1936207753SmmDate: Fri Sep 11 17:06:32 2009 +0300 1937207753Smm 1938207753Smm Add PACKAGE_HOMEPAGE to {windows,dos}/config.h to fix build errors. 1939207753Smm 1940207753Smmcommit 221be761f467da76875247bc02d7a1716682075d 1941207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1942207753SmmDate: Fri Sep 11 10:24:09 2009 +0300 1943207753Smm 1944207753Smm Use $(LN_EXEEXT) in symlinks to executables. 1945207753Smm 1946207753Smm This fixes "make install" on operating systems using 1947207753Smm a suffix for executables. 1948207753Smm 1949207753Smm Cygwin is treated specially. The symlink names won't have 1950207753Smm .exe suffix even though the executables themselves have. 1951207753Smm Thanks to Charles Wilson. 1952207753Smm 1953207753Smmcommit 18a4233a53d9b82abac7db7d7804684c5fea9c2c 1954207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1955207753SmmDate: Fri Sep 11 09:25:09 2009 +0300 1956207753Smm 1957207753Smm Fix a couple of warnings. 1958207753Smm 1959207753Smmcommit 429910b2ba67611d8df60d1a9da9641bdb5f82b4 1960207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1961207753SmmDate: Sat Sep 5 18:39:21 2009 +0300 1962207753Smm 1963207753Smm Add OS/2-specific code to physmem.h. 1964207753Smm 1965207753Smm Also move DJGPP-specific code near the code meant 1966207753Smm for other DOS-like systems. 1967207753Smm 1968207753Smmcommit 7aca7b3174bcbba4a4915682ff0cd405d63f5740 1969207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1970207753SmmDate: Sat Sep 5 01:21:15 2009 +0300 1971207753Smm 1972207753Smm Updated THANKS. 1973207753Smm 1974207753Smmcommit 60ccb80c9c4a0d771acc5b7d9d6f32b17fed1071 1975207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1976207753SmmDate: Sat Sep 5 01:20:29 2009 +0300 1977207753Smm 1978207753Smm Use sysctl() != -1 instead of !sysctl() to check if 1979207753Smm the function call succeeded. 1980207753Smm 1981207753Smm NetBSD 4.0 returns positive values on success, but 1982207753Smm NetBSD Current and FreeBSD return zero. OpenBSD's 1983207753Smm man page doesn't tell what sysctl() returns on 1984207753Smm success. All these BSDs return -1 on error. 1985207753Smm 1986207753Smm Thanks to Robert Elz and Thomas Klausner. 1987207753Smm 1988207753Smmcommit 173368911cf09ab0b03fc4db8f3d4b81d86dce32 1989207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1990207753SmmDate: Wed Sep 2 09:43:51 2009 +0300 1991207753Smm 1992207753Smm Mention in INSTALL that --enable-small doesn't modify CFLAGS. 1993207753Smm 1994207753Smmcommit 319a0fd7d7e9ebbb71ca6930abfc20777cb4aacc 1995207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 1996207753SmmDate: Tue Sep 1 20:40:01 2009 +0300 1997207753Smm 1998207753Smm Refactored option parsing. 1999207753Smm 2000207753Smmcommit 25adaaa56e2e51a47a910a8d73452414619a2e53 2001207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2002207753SmmDate: Tue Sep 1 20:23:30 2009 +0300 2003207753Smm 2004207753Smm Fix options parsing bug in xz. 2005207753Smm 2006207753Smm xz used to reject "xz --lzma2=pb=2," while 2007207753Smm "xz --lzma2=pb=2,," worked. Now both work. 2008207753Smm 2009207753Smmcommit 5f6dddc6c911df02ba660564e78e6de80947c947 2010207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2011207753SmmDate: Tue Sep 1 20:20:19 2009 +0300 2012207753Smm 2013207753Smm Updated TODO. 2014207753Smm 2015207753Smmcommit 655457b9ada5ec7db398c5392e41290f3f332ea8 2016207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2017207753SmmDate: Mon Aug 31 21:59:25 2009 +0300 2018207753Smm 2019207753Smm Revert 43f44160b1ddcbf7e5205c37db09b3bebe7226f9 2020207753Smm and use a fix that works on all systems using 2021207753Smm GNU assembler. 2022207753Smm 2023207753Smm Maybe the assembler code is used e.g. on Solaris x86 2024207753Smm but let's worry about it if this doesn't work on it. 2025207753Smm 2026207753Smmcommit 162189c3477953805a28f96d3a75cb9ab9417928 2027207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2028207753SmmDate: Sun Aug 30 17:29:19 2009 +0300 2029207753Smm 2030207753Smm Updated THANKS. 2031207753Smm 2032207753Smmcommit 2331f5f97af3e5897e23da45d9df3d664099c7f8 2033207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2034207753SmmDate: Sun Aug 30 17:28:52 2009 +0300 2035207753Smm 2036207753Smm Add more OS/2 specific info to INSTALL. 2037207753Smm 2038207753Smmcommit 94c66b3297b3ad307eee93cf6b160e3c43997f11 2039207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2040207753SmmDate: Sat Aug 29 14:43:52 2009 +0300 2041207753Smm 2042207753Smm Use even more hackish way to support thousand separators. 2043207753Smm 2044207753Smm Seems that in addition on Windows and DOS, also OpenBSD 2045207753Smm lacks support for %'d style printf() format strings. 2046207753Smm So far that is the only modern POSIX-like system I know 2047207753Smm with this problem, but after this hack, the thousand 2048207753Smm separator shouldn't be a problem on any system. 2049207753Smm 2050207753Smm Maybe testing if a format string like %'d produces 2051207753Smm reasonable output is invoking undefined behavior on some 2052207753Smm systems, but so far all the problematic systems I've tried 2053207753Smm just print the raw format string (e.g. %'d prints 'd). 2054207753Smm 2055207753Smm Maybe Autoconf test would have been better, but this 2056207753Smm hack works also for cross-compilation, and avoids 2057207753Smm recompilation in case the system libc starts to support 2058207753Smm the thousand separator. 2059207753Smm 2060207753Smmcommit 3432e9c6aab851da1227b63dce645d7f190c04d8 2061207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2062207753SmmDate: Sat Aug 29 13:42:56 2009 +0300 2063207753Smm 2064207753Smm Updated THANKS. 2065207753Smm 2066207753Smmcommit 27414daadf5727e8ab942374b5ec1c8990122878 2067207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2068207753SmmDate: Sat Aug 29 13:39:21 2009 +0300 2069207753Smm 2070207753Smm Fix sysctl() usage. 2071207753Smm 2072207753Smm This fixes build on *BSDs and Darwin. 2073207753Smm 2074207753Smm Thanks to Jukka Salmi for the patches. 2075207753Smm Richard Koch reported the problem too. 2076207753Smm 2077207753Smmcommit 43f44160b1ddcbf7e5205c37db09b3bebe7226f9 2078207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2079207753SmmDate: Sat Aug 29 13:35:23 2009 +0300 2080207753Smm 2081207753Smm Fix x86 assembler on GCC 3. 2082207753Smm 2083207753Smm Thanks to Karl Berry. 2084207753Smm 2085207753Smmcommit 682efdc1f9492fdd76c9ce82e7c00ca0768067e8 2086207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2087207753SmmDate: Thu Aug 27 18:36:59 2009 +0300 2088207753Smm 2089207753Smm "make dist" fixes 2090207753Smm 2091207753Smmcommit c8c184db1c95bf70f78256ec6237845a57f342af 2092207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2093207753SmmDate: Thu Aug 27 17:08:33 2009 +0300 2094207753Smm 2095207753Smm Update xz man page date. 2096207753Smm 2097207753Smmcommit 9756fce565e98b8fa5fe6ead296d84e7601ec254 2098207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2099207753SmmDate: Thu Aug 27 17:00:22 2009 +0300 2100207753Smm 2101207753Smm Fix the debug directory. 2102207753Smm 2103207753Smm 6a2eb54092fc625d59921a607ff68cd1a90aa898 and 2104207753Smm 71f18e8a066a01dda0c8e5508b135ef104e43e4c required 2105207753Smm some changes that weren't applied in debug. 2106207753Smm 2107207753Smmcommit 77007a7fb20187fcf3d1dd9839c79ace2d63f2ea 2108207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2109207753SmmDate: Thu Aug 27 16:36:40 2009 +0300 2110207753Smm 2111207753Smm Add missing files to EXTRA_DIST. 2112207753Smm 2113207753Smmcommit 04dcbfdeb921e5f361a4487134e91e23fffbe09d 2114207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2115207753SmmDate: Thu Aug 27 16:21:22 2009 +0300 2116207753Smm 2117207753Smm Bumped version to 4.999.9beta. 2118207753Smm 2119207753Smmcommit fd7618611a22f42a6913bc8d518c9bbc9252d6b4 2120207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2121207753SmmDate: Thu Aug 27 16:17:47 2009 +0300 2122207753Smm 2123207753Smm Updated THANKS. 2124207753Smm 2125207753Smmcommit c29e76c0f910fca0a90a50b78d337f6c32623e9d 2126207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2127207753SmmDate: Thu Aug 27 16:12:52 2009 +0300 2128207753Smm 2129207753Smm .xz file format specification 1.0.4 (probably). 2130207753Smm 2131207753Smm Thanks to Christian von Roques, Peter Lawler, 2132207753Smm and Jim Meyering for the fixes. 2133207753Smm 2134207753Smmcommit 696d7ee3953beaf4f0ed18e78917ccf300431966 2135207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2136207753SmmDate: Thu Aug 27 15:43:54 2009 +0300 2137207753Smm 2138207753Smm Require GNU libtool 2.2. 2139207753Smm 2140207753Smmcommit 4c3558aa8305a8f8b6c43b8569eb539717ca9e8d 2141207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2142207753SmmDate: Thu Aug 27 15:34:45 2009 +0300 2143207753Smm 2144207753Smm Add "dos" to EXTRA_DIST. 2145207753Smm 2146207753Smmcommit 35b29e4424ced5a3ababf132283e519080c7b298 2147207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2148207753SmmDate: Thu Aug 27 15:23:27 2009 +0300 2149207753Smm 2150207753Smm Updated TODO. 2151207753Smm 2152207753Smmcommit 23414377192c21f3f34c84cdfe0ef0fbd06a1dea 2153207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2154207753SmmDate: Thu Aug 27 15:17:00 2009 +0300 2155207753Smm 2156207753Smm Some xz man page improvements. 2157207753Smm 2158207753Smmcommit 371b04e19fc9051dbaeec51ec0badec6a1f0699d 2159207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2160207753SmmDate: Thu Aug 27 10:41:01 2009 +0300 2161207753Smm 2162207753Smm Removed doc/bugs.txt. 2163207753Smm 2164207753Smmcommit d88c4072b36d3a76f839185799fb1d91037a1b81 2165207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2166207753SmmDate: Thu Aug 27 10:40:25 2009 +0300 2167207753Smm 2168207753Smm Updated README. 2169207753Smm 2170207753Smm It now includes bug reporting instructions/tips. 2171207753Smm 2172207753Smmcommit 92e536d8b8d33a6b12d0802bcd7be4437046f13e 2173207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2174207753SmmDate: Thu Aug 27 10:21:18 2009 +0300 2175207753Smm 2176207753Smm Fix a typo in FAQ. 2177207753Smm 2178207753Smm Thanks to Jim Meyering. 2179207753Smm 2180207753Smm (From now on, I try to always remember to put 2181207753Smm the relevant thanks to commit messages.) 2182207753Smm 2183207753Smmcommit 3e2ba8b58585743e59251e69ad2783eb08357079 2184207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2185207753SmmDate: Thu Aug 27 10:13:46 2009 +0300 2186207753Smm 2187207753Smm Updates to liblzma API headers. 2188207753Smm 2189207753Smm Added lzma_nothrow for every function. It adds 2190207753Smm throw() when the header is used in C++ code. 2191207753Smm 2192207753Smm Some lzma_attrs were added or removed. 2193207753Smm 2194207753Smm Lots of comments were improved. 2195207753Smm 2196207753Smmcommit 8e8ebc17c535a1f8846718059b48417409c37050 2197207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2198207753SmmDate: Tue Aug 18 00:30:09 2009 +0300 2199207753Smm 2200207753Smm Install faq.txt. 2201207753Smm 2202207753Smmcommit b198e770a146e4a41f91a93f0b233713f2515848 2203207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2204207753SmmDate: Tue Aug 18 00:26:48 2009 +0300 2205207753Smm 2206207753Smm Updated faq.txt. 2207207753Smm 2208207753Smm Some questions worth answering were removed, because I 2209207753Smm currently don't have good up to date answers to them. 2210207753Smm 2211207753Smmcommit fe111a25cd788d31b581996e4533910388a7f0a9 2212207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2213207753SmmDate: Mon Aug 17 22:45:50 2009 +0300 2214207753Smm 2215207753Smm Some xz man changes. 2216207753Smm 2217207753Smmcommit 10242a21e9abda0c5c6a03501703cc40b8a699a5 2218207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2219207753SmmDate: Sun Aug 16 22:15:42 2009 +0300 2220207753Smm 2221207753Smm Updated THANKS. 2222207753Smm 2223207753Smmcommit 3ce1916c83041113b9cad9ead5c97a527cf8aa1d 2224207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2225207753SmmDate: Sun Aug 16 22:15:13 2009 +0300 2226207753Smm 2227207753Smm Fix data corruption in LZ/LZMA2 encoder. 2228207753Smm 2229207753Smm Thanks to Jonathan Stott for the bug report. 2230207753Smm 2231207753Smmcommit 66da129c8ec33dd66acc92f113f7c1ca740ca81a 2232207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2233207753SmmDate: Thu Aug 13 15:15:37 2009 +0300 2234207753Smm 2235207753Smm Updated INSTALL and PACKAGERS to match the changes 2236207753Smm made in --enable-dynamic. 2237207753Smm 2238207753Smmcommit 8238c4b2402f952c4e492e5b778aa272e57b6705 2239207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2240207753SmmDate: Thu Aug 13 15:03:46 2009 +0300 2241207753Smm 2242207753Smm Link lzmainfo against shared liblzma by default. 2243207753Smm 2244207753Smmcommit 71f18e8a066a01dda0c8e5508b135ef104e43e4c 2245207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2246207753SmmDate: Thu Aug 13 15:00:21 2009 +0300 2247207753Smm 2248207753Smm Make --enable-dynamic a tristate option. 2249207753Smm 2250207753Smm Some programs will by default be linked against static 2251207753Smm liblzma and some against shared liblzma. --enable-dynamic 2252207753Smm now allows overriding the default to both directions 2253207753Smm (all dynamic or all static) even when building both 2254207753Smm shared and static liblzma. 2255207753Smm 2256207753Smm This is quite messy compared to how simple thing it is supposed 2257207753Smm to be. The complexity is mostly due to Windows support. 2258207753Smm 2259207753Smmcommit 5aa4678b2342dcfc1d2b31aa9fa4f39c539e4b61 2260207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2261207753SmmDate: Thu Aug 13 12:56:47 2009 +0300 2262207753Smm 2263207753Smm Fix xz Makefile.am for the man page. 2264207753Smm 2265207753Smm install-exec-hook -> install-data-hook 2266207753Smm 2267207753Smmcommit e51b4e49e800bd84e6d589dca2964d3985e88139 2268207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2269207753SmmDate: Thu Aug 13 12:55:45 2009 +0300 2270207753Smm 2271207753Smm Add lzmainfo for backward compatibility with LZMA Utils. 2272207753Smm 2273207753Smm lzmainfo now links against static liblzma. In contrast 2274207753Smm to other command line tools in XZ Utils, linking lzmainfo 2275207753Smm against static liblzma by default is dumb. This will be 2276207753Smm fixed once I have fixed some related issues in configure.ac. 2277207753Smm 2278207753Smmcommit a4165d0584376d948c213ec93c6065d24ff6a5e7 2279207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2280207753SmmDate: Thu Aug 13 12:42:36 2009 +0300 2281207753Smm 2282207753Smm Sync some error messages from xz to xzdec. 2283207753Smm 2284207753Smm Make xz error message translation usable outside 2285207753Smm xz (at least in upcoming lzmainfo). 2286207753Smm 2287207753Smmcommit df636eb4e066b4e154ce8e66e82c87ba1db652a6 2288207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2289207753SmmDate: Thu Aug 13 09:37:21 2009 +0300 2290207753Smm 2291207753Smm Add xz man page to manfiles in toplevel Makefile.am. 2292207753Smm 2293207753Smmcommit 180bdf58ea5bb07941e0a99b304d9aa832198748 2294207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2295207753SmmDate: Thu Aug 13 09:37:01 2009 +0300 2296207753Smm 2297207753Smm Fix first line of xz man page. 2298207753Smm 2299207753Smmcommit e1ce2291e759b50ebfcf7cbbcc04cd098f1705a4 2300207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2301207753SmmDate: Mon Aug 10 11:22:31 2009 +0300 2302207753Smm 2303207753Smm Added a rough version of the xz man page. 2304207753Smm 2305207753Smmcommit e71903fc6101f1c039d702e335b08aad1e1b4100 2306207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 2307207753SmmDate: Sun Aug 9 13:41:20 2009 -0500 2308207753Smm 2309207753Smm ���xzdiff a.xz b.xz��� always fails 2310207753Smm 2311207753Smm Attempts to compare two compressed files result in no output and 2312207753Smm exit status 2. 2313207753Smm 2314207753Smm Instead of going to standard output, ���diff��� output is being 2315207753Smm captured in the xz_status variable along with the exit status from 2316207753Smm the decompression commands. Later, when this variable is examined 2317207753Smm for nonzero status codes, numerals from dates in the ���diff��� output 2318207753Smm make it appear as though decompression failed. 2319207753Smm 2320207753Smm So let the ���diff��� output leak to standard output with another file 2321207753Smm descriptor. (This trick is used in all similar contexts elsewhere 2322207753Smm in xzdiff and in the analogous context in gzip���s zdiff script.) 2323207753Smm 2324207753Smmcommit 1d314b81aa5b0c4530638ffabd4e0edb52e5362c 2325207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 2326207753SmmDate: Sun Aug 9 13:22:12 2009 -0500 2327207753Smm 2328207753Smm xzless: Support compressed standard input 2329207753Smm 2330207753Smm It can be somewhat confusing that 2331207753Smm 2332207753Smm less < some_file.txt 2333207753Smm 2334207753Smm works fine, whereas 2335207753Smm 2336207753Smm xzless < some_file.txt.xz 2337207753Smm 2338207753Smm does not. Since version 429, ���less��� allows a filter specified in 2339207753Smm the LESSOPEN environment variable to preprocess its input even if 2340207753Smm it comes from standard input, if $LESSOPEN begins with ���|-���. So 2341207753Smm set $LESSOPEN to take advantage of this feature. 2342207753Smm 2343207753Smm Check less���s version at runtime so xzless can continue to work 2344207753Smm with older versions. 2345207753Smm 2346207753Smmcommit a7f5d2fe4826ac68839d00059f05004fb81d5c69 2347207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2348207753SmmDate: Sun Aug 9 20:57:46 2009 +0300 2349207753Smm 2350207753Smm GPLv2+ not GPLv2 for Doxyfile.in is probably OK. 2351207753Smm 2352207753Smmcommit b735cde20cc14857136ae65a0e5d336ed7ddc862 2353207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2354207753SmmDate: Sun Aug 2 00:27:29 2009 +0300 2355207753Smm 2356207753Smm Added a copyright notice to Doxyfile.in since it contains 2357207753Smm lots of comments from Doxygen. 2358207753Smm 2359207753Smm It seems that the Doxygen authors' intent is to not apply 2360207753Smm their copyright on generated files, but since it doesn't 2361207753Smm matter for XZ Utils at all, better safe than sorry. 2362207753Smm 2363207753Smmcommit 0fd157cc008446adfc8f91394f5503868025a642 2364207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2365207753SmmDate: Sun Aug 2 00:11:37 2009 +0300 2366207753Smm 2367207753Smm Updated THANKS. 2368207753Smm 2369207753Smmcommit b198da96ff9ac8c89b466b4d196c5f3fe1c7904f 2370207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2371207753SmmDate: Sun Aug 2 00:10:22 2009 +0300 2372207753Smm 2373207753Smm Updated TODO. 2374207753Smm 2375207753Smmcommit 669413bb2db954bbfde3c4542fddbbab53891eb4 2376207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2377207753SmmDate: Thu Jul 30 12:25:55 2009 +0300 2378207753Smm 2379207753Smm Updated THANKS. 2380207753Smm 2381207753Smmcommit dbbd8fb870ae789d96497911006c869d37148c15 2382207753SmmAuthor: Jonathan Nieder <jrnieder@gmail.com> 2383207753SmmDate: Tue Jul 28 17:37:24 2009 -0500 2384207753Smm 2385207753Smm xzdiff: add missing ;; to case statement 2386207753Smm 2387207753Smmcommit adbad2d16cb5909f85d4a429011005613ea62ffe 2388207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2389207753SmmDate: Fri Jul 24 13:15:06 2009 +0300 2390207753Smm 2391207753Smm Added history.txt to doc_DATA. 2392207753Smm 2393207753Smmcommit e0236f12569eb36f9b81ce7a1e52e0f73698ac27 2394207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2395207753SmmDate: Fri Jul 24 12:00:40 2009 +0300 2396207753Smm 2397207753Smm Updated .gitignore files. 2398207753Smm 2399207753Smmcommit 2f34fb269265e3aba43a2a9c734020a45268826d 2400207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2401207753SmmDate: Fri Jul 24 11:34:02 2009 +0300 2402207753Smm 2403207753Smm Minor improvements to COPYING. 2404207753Smm 2405207753Smmcommit 0db1befcfbc120377df4b89923762f16d25f548a 2406207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2407207753SmmDate: Thu Jul 23 19:10:55 2009 +0300 2408207753Smm 2409207753Smm Fix incorrect usage of getopt_long(), which caused 2410207753Smm invalid memory access if XZ_OPT was defined. 2411207753Smm 2412207753Smmcommit 8f8ec942d6d21ada2096eaf063411bc8bc7e2d48 2413207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2414207753SmmDate: Mon Jul 20 15:43:32 2009 +0300 2415207753Smm 2416207753Smm Avoid internal error with --format=xz --lzma1. 2417207753Smm 2418207753Smmcommit 99f9e879a6a8bb54a65da99c12e0f390216c152a 2419207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2420207753SmmDate: Sun Jul 19 13:14:20 2009 +0300 2421207753Smm 2422207753Smm Major documentation update. 2423207753Smm 2424207753Smm Installation and packaging instructions were added. 2425207753Smm README and other generic docs were revised. 2426207753Smm 2427207753Smm Some of the documentation files are now installed to $docdir. 2428207753Smm 2429207753Smmcommit ef4cf1851de89022cba5674784f1a8f6343c15b0 2430207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2431207753SmmDate: Sun Jul 19 11:09:31 2009 +0300 2432207753Smm 2433207753Smm Added missing author notice to xzless.in. 2434207753Smm 2435207753Smmcommit 4c9c989d45b188667799a7a1d6c728ed43f7bf77 2436207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2437207753SmmDate: Sat Jul 18 18:54:55 2009 +0300 2438207753Smm 2439207753Smm Use AC_CONFIG_AUX_DIR to clean up the toplevel directory 2440207753Smm a little. 2441207753Smm 2442207753Smm Fixed a related bug in the toplevel Makefile.am. 2443207753Smm 2444207753Smm Added the build-aux directory to .gitignore. 2445207753Smm 2446207753Smmcommit 366e436090a7a87215e9bf0e3ddcd55f05b50587 2447207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2448207753SmmDate: Sat Jul 18 14:34:08 2009 +0300 2449207753Smm 2450207753Smm Updated the totally outdated TODO file. 2451207753Smm 2452207753Smmcommit 64e498c89d8b9966e8663f43bf64d47c26c55c62 2453207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2454207753SmmDate: Sat Jul 18 11:26:39 2009 +0300 2455207753Smm 2456207753Smm Added public domain notice into a few files. 2457207753Smm 2458207753Smmcommit a35755c5de808df027675688855d1b621a4fb428 2459207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2460207753SmmDate: Tue Jul 14 21:10:36 2009 +0300 2461207753Smm 2462207753Smm Allow extra commas in filter-specific options on xz command line. 2463207753Smm 2464207753Smm This may slightly ease writing scripts that construct 2465207753Smm filter-specific option strings dynamically. 2466207753Smm 2467207753Smmcommit 98f3cac1ad31191c5160a7e48398bf85141e941c 2468207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2469207753SmmDate: Tue Jul 14 18:04:31 2009 +0300 2470207753Smm 2471207753Smm Accept --lzma2=preset=6e where "e" is equivalent to --extreme 2472207753Smm when no custom chain is in use. 2473207753Smm 2474207753Smmcommit d873a09e956363e54bf58c577c8f7e487b6fb464 2475207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2476207753SmmDate: Sun Jul 12 19:08:30 2009 +0300 2477207753Smm 2478207753Smm Add dist-hook to create ChangeLog from the commit log, 2479207753Smm and to conver the man pages to PDF and plain text, which 2480207753Smm may be convenient to those who cannot render man pages. 2481207753Smm 2482207753Smmcommit cd69a5a6c16c289f6f8e2823b03c72289472270f 2483207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2484207753SmmDate: Fri Jul 10 11:39:38 2009 +0300 2485207753Smm 2486207753Smm BCJ filters: Reject invalid start offsets with LZMA_OPTIONS_ERROR. 2487207753Smm 2488207753Smm This is a quick and slightly dirty fix to make the code 2489207753Smm conform to the latest file format specification. Without 2490207753Smm this patch, it's possible to make corrupt files by 2491207753Smm specifying start offset that is not a multiple of the 2492207753Smm filter's alignment. Custom start offset is almost never 2493207753Smm used, so this was only a minor bug. 2494207753Smm 2495207753Smm The xz command line tool doesn't validate the start offset, 2496207753Smm so one will get a bit unclear error message if trying to use 2497207753Smm an invalid start offset. 2498207753Smm 2499207753Smmcommit eed9953732b801f6c97317fb3160445a8754180b 2500207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2501207753SmmDate: Fri Jul 10 11:33:21 2009 +0300 2502207753Smm 2503207753Smm Look for full command names instead of substrings 2504207753Smm like "un", "cat", and "lz" when determining if 2505207753Smm xz is run as unxz, xzcat, lzma, unlzma, or lzcat. 2506207753Smm 2507207753Smm This is to ensure that if xz is renamed (e.g. via 2508207753Smm --program-transform-name), it doesn't so easily 2509207753Smm work in wrong mode. 2510207753Smm 2511207753Smmcommit 6f62fa88f4ff7ba78565c314c0e6e71c498fa658 2512207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2513207753SmmDate: Wed Jul 8 23:06:46 2009 +0300 2514207753Smm 2515207753Smm Updated THANKS. 2516207753Smm 2517207753Smmcommit 1754b7e03e2aa7e2e0196807fe8b0f3f5a637b0e 2518207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2519207753SmmDate: Wed Jul 8 23:05:29 2009 +0300 2520207753Smm 2521207753Smm Portability improvement to version.sh. 2522207753Smm 2523207753Smmcommit 3bdb53792c0e3e3febe9370e56eda5b08f89410f 2524207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2525207753SmmDate: Wed Jul 8 22:50:16 2009 +0300 2526207753Smm 2527207753Smm Remove --force from xzdec. 2528207753Smm 2529207753Smm It was ignored for compatibility with xz, but now that 2530207753Smm --decompress --stdout --force copies unrecognized files 2531207753Smm as is to stdout, simply ignoring --force in xzdec would 2532207753Smm be wrong. xzdec will not support copying unrecognized 2533207753Smm data as is to stdout, so it cannot support --force. 2534207753Smm 2535207753Smmcommit 5f16ef4abf220028a9ddbcb138217597a9455f62 2536207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2537207753SmmDate: Mon Jul 6 10:36:04 2009 +0300 2538207753Smm 2539207753Smm Use sed instead of $(SED) so that we don't need to 2540207753Smm use AC_PROG_SED. We don't do anything fancy with sed, 2541207753Smm so this should work OK. libtool 2.2 sets SED but 1.5 2542207753Smm doesn't, so $(SED) happened to work when using libtool 2.2. 2543207753Smm 2544207753Smmcommit 96e4b257e101d72072d43e144897d92920270669 2545207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2546207753SmmDate: Sun Jul 5 22:25:17 2009 +0300 2547207753Smm 2548207753Smm Major update to the xzgrep and other scripts based on 2549207753Smm the latest versions found from gzip CVS repository. 2550207753Smm 2551207753Smm configure will try to find a POSIX shell to be used by 2552207753Smm the scripts. This should ease portability on systems 2553207753Smm which have pre-POSIX /bin/sh. 2554207753Smm 2555207753Smm xzgrep and xzdiff support .xz, .lzma, .gz, and .bz2 files. 2556207753Smm xzmore and xzless support only .xz and .lzma files. 2557207753Smm 2558207753Smm The name of the xz executable used in these scripts is 2559207753Smm now correct even if --program-transform-name has been used. 2560207753Smm 2561207753Smmcommit 25cc7a6e8c2506a0d80084a4c1c67d33e7439100 2562207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2563207753SmmDate: Sun Jul 5 19:26:53 2009 +0300 2564207753Smm 2565207753Smm Use @PACKAGE_HOMEPAGE@ in liblzma.pc.in. 2566207753Smm 2567207753Smmcommit 18c10c30d2833f394cd7bce0e6a821044b15832f 2568207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2569207753SmmDate: Sat Jul 4 00:40:44 2009 +0300 2570207753Smm 2571207753Smm Make "xz --decompress --stdout --force" copy unrecognized 2572207753Smm files as is to standard output. 2573207753Smm 2574207753Smm This feature is needed to be more compatible with gzip's 2575207753Smm behavior. This was more complicated to implement than it 2576207753Smm sounds, because the way liblzma is able to return errors with 2577207753Smm files of only a few bytes in size. xz now has its own file 2578207753Smm type detection code and no longer uses lzma_auto_decoder(). 2579207753Smm 2580207753Smmcommit 0a289c01ac821ea9c4250aa906b0ae3cfa953633 2581207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2582207753SmmDate: Thu Jul 2 14:30:38 2009 +0300 2583207753Smm 2584207753Smm Define PACKAGE_HOMEPAGE in configure.ac and use it in 2585207753Smm xz and xzdec. 2586207753Smm 2587207753Smm Use also PACKAGE_NAME instead of hardcoding "XZ Utils". 2588207753Smm 2589207753Smmcommit 5cc99db5bae8633f85559e5cdaef4cd905a4ee9c 2590207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2591207753SmmDate: Wed Jul 1 12:21:24 2009 +0300 2592207753Smm 2593207753Smm Avoid visibility related compiler warnings on Windows. 2594207753Smm 2595207753Smmcommit 7653d1cf48080e63b189ed9d58dea0e82b6b1c5e 2596207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2597207753SmmDate: Tue Jun 30 17:14:39 2009 +0300 2598207753Smm 2599207753Smm Use static liblzma by default also for tests. 2600207753Smm 2601207753Smmcommit f42ee981668b545ab6d06c6072e262c29605273c 2602207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2603207753SmmDate: Tue Jun 30 17:09:57 2009 +0300 2604207753Smm 2605207753Smm Build system fixes 2606207753Smm 2607207753Smm Don't use libtool convenience libraries to avoid recently 2608207753Smm discovered long-standing subtle but somewhat severe bugs 2609207753Smm in libtool (at least 1.5.22 and 2.2.6 are affected). It 2610207753Smm was found when porting XZ Utils to Windows 2611207753Smm <http://lists.gnu.org/archive/html/libtool/2009-06/msg00070.html> 2612207753Smm but the problem is significant also e.g. on GNU/Linux. 2613207753Smm 2614207753Smm Unless --disable-shared is passed to configure, static 2615207753Smm library built from a set of convenience libraries will 2616207753Smm contain PIC objects. That is, while libtool builds non-PIC 2617207753Smm objects too, only PIC objects will be used from the 2618207753Smm convenience libraries. On 32-bit x86 (tested on mobile XP2400+), 2619207753Smm using PIC instead of non-PIC makes the decompressor 10 % slower 2620207753Smm with the default CFLAGS. 2621207753Smm 2622207753Smm So while xz was linked against static liblzma by default, 2623207753Smm it got the slower PIC objects unless --disable-shared was 2624207753Smm used. I tend develop and benchmark with --disable-shared 2625207753Smm due to faster build time, so I hadn't noticed the problem 2626207753Smm in benchmarks earlier. 2627207753Smm 2628207753Smm This commit also adds support for building Windows resources 2629207753Smm into liblzma and executables. 2630207753Smm 2631207753Smmcommit 89dac1db6f168d7469cfbc4432651d4724c5c0de 2632207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2633207753SmmDate: Mon Jun 29 22:19:51 2009 +0300 2634207753Smm 2635207753Smm Added a comment about "autoconf -fi" to autogen.sh. 2636207753Smm 2637207753Smmcommit 6e685aae4594bc0af1b5032e01bb37d0edaa3ebd 2638207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2639207753SmmDate: Sun Jun 28 10:04:24 2009 +0300 2640207753Smm 2641207753Smm Add -no-undefined to get shared liblzma on Windows. 2642207753Smm 2643207753Smmcommit 73f560ee5fa064992b76688d9472baf139432540 2644207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2645207753SmmDate: Sat Jun 27 22:57:15 2009 +0300 2646207753Smm 2647207753Smm Make physmem() work on Cygwin 1.5 and older. 2648207753Smm 2649207753Smmcommit 7ff0004fbce24ae72eddfe392828ffd7d4639ed1 2650207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2651207753SmmDate: Sat Jun 27 17:28:01 2009 +0300 2652207753Smm 2653207753Smm Moved the Windows resource files outside the windows directory 2654207753Smm to prepare for building them with Autotools. 2655207753Smm 2656207753Smmcommit 449c634674f35336a4815d398172e447659a135e 2657207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2658207753SmmDate: Sat Jun 27 13:05:03 2009 +0300 2659207753Smm 2660207753Smm Added missing $(EXEEXT). 2661207753Smm 2662207753Smmcommit 792db79f27ad9ab1fb977e23be65c7761f545752 2663207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2664207753SmmDate: Sat Jun 27 12:32:40 2009 +0300 2665207753Smm 2666207753Smm Create correct symlinks even when 2667207753Smm --program-{prefix,suffix,transform} is passed to configure. 2668207753Smm 2669207753Smmcommit 0adc72feb84f5b903f6ad9d3f759b1c326fafc6b 2670207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2671207753SmmDate: Sat Jun 27 10:02:24 2009 +0300 2672207753Smm 2673207753Smm Silence a compiler warning on DOS-like systems. 2674207753Smm 2675207753Smmcommit ad12edc95254ede3f0cb8dec8645e8789e984c4f 2676207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2677207753SmmDate: Sat Jun 27 09:35:15 2009 +0300 2678207753Smm 2679207753Smm Updated the filenames in POTFILES.in too. 2680207753Smm 2681207753Smmcommit b2b1f867532732fe9969131f8713bdd6b0731763 2682207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2683207753SmmDate: Sat Jun 27 00:43:06 2009 +0300 2684207753Smm 2685207753Smm Hopefully improved portability of the assembler code in 2686207753Smm Autotools based builds on Windows. 2687207753Smm 2688207753Smmcommit c393055947247627a09b6a6b8f20aa0c32f9be16 2689207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2690207753SmmDate: Fri Jun 26 21:17:29 2009 +0300 2691207753Smm 2692207753Smm Updated THANKS (most of today's commits are based on 2693207753Smm Charles Wilson's patches). 2694207753Smm 2695207753Smmcommit da0af22e4b4139b8a10710945f8b245b3a77c97d 2696207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2697207753SmmDate: Fri Jun 26 21:00:35 2009 +0300 2698207753Smm 2699207753Smm Updated comments to match renamed files. 2700207753Smm 2701207753Smmcommit 65014fd211dfbd4be48685998cb5a12aaa29c8d2 2702207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2703207753SmmDate: Fri Jun 26 20:49:54 2009 +0300 2704207753Smm 2705207753Smm Rename process.[hc] to coder.[hc] and io.[hc] to file_io.[hc] 2706207753Smm to avoid problems on systems with system headers with those 2707207753Smm names. 2708207753Smm 2709207753Smmcommit 5e1257466dcb66f1d7a3f71814a5ad885cba43e8 2710207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2711207753SmmDate: Fri Jun 26 20:43:36 2009 +0300 2712207753Smm 2713207753Smm Rename process_file() to coder_run(). 2714207753Smm 2715207753Smmcommit cad62551c5fa9865dbe0841a0b3bc729c4fbe8fc 2716207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2717207753SmmDate: Fri Jun 26 20:36:45 2009 +0300 2718207753Smm 2719207753Smm Ugly hack to make it possible to use the thousand separator 2720207753Smm format character with snprintf() on POSIX systems but not 2721207753Smm on non-POSIX systems and still keep xgettext working. 2722207753Smm 2723207753Smmcommit fe378d47074b16c52b00fe184d119287c68ce2e7 2724207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2725207753SmmDate: Fri Jun 26 15:40:40 2009 +0300 2726207753Smm 2727207753Smm Added missing source files to windows/Makefile. 2728207753Smm 2729207753Smmcommit 390a6408563067613b29de895cb40e4d0386d62c 2730207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2731207753SmmDate: Fri Jun 26 15:37:53 2009 +0300 2732207753Smm 2733207753Smm Basic support for building with Cygwin and MinGW using 2734207753Smm the Autotools based build system. It's not good yet, more 2735207753Smm fixes will follow. 2736207753Smm 2737207753Smmcommit 1c9360b7d1197457aaad2f8888b99f1149861579 2738207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2739207753SmmDate: Fri Jun 26 14:47:31 2009 +0300 2740207753Smm 2741207753Smm Fix @variables@ to $(variables) in Makefile.am files. 2742207753Smm Fix the ordering of libgnu.a and LTLIBINTL on the linker 2743207753Smm command line and added missing LTLIBINTL to tests/Makefile.am. 2744207753Smm 2745207753Smmcommit d45615c555e250209ebb55aa3649abe790f1eeac 2746207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2747207753SmmDate: Fri Jun 26 14:20:02 2009 +0300 2748207753Smm 2749207753Smm Allow to explicitly specify autotool versions in autogen.sh. 2750207753Smm 2751207753Smmcommit eaf8367368a329afa48785380f9dca6b681f3397 2752207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2753207753SmmDate: Fri Jun 26 14:18:32 2009 +0300 2754207753Smm 2755207753Smm Add version.sh to EXTRA_DIST. 2756207753Smm 2757207753Smmcommit b317b218e2d383dd27a700094c0de4510540ea18 2758207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2759207753SmmDate: Wed Jun 24 20:14:10 2009 +0300 2760207753Smm 2761207753Smm Support HW_PHYSMEM64 2762207753Smm 2763207753Smmcommit ae82dde5d9cc60c80cc89601b6c51cc1611d48e7 2764207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2765207753SmmDate: Wed Jun 24 13:01:59 2009 +0300 2766207753Smm 2767207753Smm Cast a char argument to isspace() to unsigned char. 2768207753Smm 2769207753Smmcommit 1735d31ea347210e914df038eeea4b2626e76e42 2770207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2771207753SmmDate: Fri Jun 5 13:46:26 2009 +0300 2772207753Smm 2773207753Smm A few more spelling fixes. Released the .xz spec 1.0.3. 2774207753Smm 2775207753Smmcommit 8ed156ce894966103e895aa08f2a9fb912f6fad5 2776207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2777207753SmmDate: Thu Jun 4 23:42:12 2009 +0300 2778207753Smm 2779207753Smm Added xzdec man page. 2780207753Smm 2781207753Smmcommit f6df39afaa84f71439507178a49b2a5dda6e824c 2782207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2783207753SmmDate: Thu Jun 4 23:26:47 2009 +0300 2784207753Smm 2785207753Smm Harmonized xzdec --memory with xz --memory and made 2786207753Smm minor cleanups. 2787207753Smm 2788207753Smmcommit 1774f27c61ce294a56712ca2f4785f90a62441bc 2789207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2790207753SmmDate: Thu Jun 4 22:59:55 2009 +0300 2791207753Smm 2792207753Smm Fix purporse -> purpose. Thanks to Andrew Dudman. 2793207753Smm Released .xz spec 1.0.2 due to this fix too. 2794207753Smm 2795207753Smmcommit cb613455642f48fb51059e22018615f64c59b70f 2796207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2797207753SmmDate: Mon Jun 1 14:53:57 2009 +0300 2798207753Smm 2799207753Smm The .xz file format version 1.0.1 2800207753Smm 2801207753Smmcommit 083c23c680ff844846d177cfc58bb7a874e7e6b9 2802207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2803207753SmmDate: Tue May 26 14:48:48 2009 +0300 2804207753Smm 2805207753Smm Make the raw value of the Check field available to applications 2806207753Smm via lzma_block structure. 2807207753Smm 2808207753Smm This changes ABI but not doesn't break API. 2809207753Smm 2810207753Smmcommit b4f5c814090dc07d4350453576305e41eb9c998d 2811207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2812207753SmmDate: Sat May 23 16:57:21 2009 +0300 2813207753Smm 2814207753Smm Remove undocumented alternative option names --bcj, --ppc, 2815207753Smm and --itanium. 2816207753Smm 2817207753Smmcommit b1edee2cdc7ef4411b1a21c07094ec763f071281 2818207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2819207753SmmDate: Sat May 23 15:12:23 2009 +0300 2820207753Smm 2821207753Smm Add support for specifying the BCJ filter start offset 2822207753Smm in the xz command line tool. 2823207753Smm 2824207753Smmcommit 72aa0e9c5f4289f10ef5bf240a9448d3017f1ceb 2825207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2826207753SmmDate: Sat May 23 14:51:09 2009 +0300 2827207753Smm 2828207753Smm Updated THANKS. 2829207753Smm 2830207753Smmcommit dcedb6998cefeca6597dd1219328a3abf5acf66d 2831207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2832207753SmmDate: Fri May 22 16:40:50 2009 +0300 2833207753Smm 2834207753Smm Added support for --quiet and --no-warn to xzdec. 2835207753Smm Cleaned up the --help message a little. 2836207753Smm 2837207753Smmcommit 5f735dae80aa629853f4831d7b84ec1c614979eb 2838207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2839207753SmmDate: Fri May 22 15:11:52 2009 +0300 2840207753Smm 2841207753Smm Use the 40 % of RAM memory usage limit in xzdec too. 2842207753Smm 2843207753Smm Update the memory usage info text in --help to match 2844207753Smm the text in xz --long-help. 2845207753Smm 2846207753Smmcommit b60376249e0c586910c4121fab4f791820cc1289 2847207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2848207753SmmDate: Fri May 22 14:43:00 2009 +0300 2849207753Smm 2850207753Smm Add --no-warn. 2851207753Smm 2852207753Smmcommit b4f92f522d4b854c0adb7c38be7531e1a6a7b008 2853207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2854207753SmmDate: Fri May 22 14:27:40 2009 +0300 2855207753Smm 2856207753Smm Fix a comment. 2857207753Smm 2858207753Smmcommit 4dd21d23f22569285ae706b58b0e5904b8db1839 2859207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2860207753SmmDate: Fri May 22 14:21:20 2009 +0300 2861207753Smm 2862207753Smm Remove the --info option, which was an alias for --list. 2863207753Smm 2864207753Smmcommit 8836139b63ce774bdd62abf17ab69b290e08229e 2865207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2866207753SmmDate: Fri May 22 12:27:43 2009 +0300 2867207753Smm 2868207753Smm If xz is run as lzma, unlzma, or lzcat, simply imply 2869207753Smm --format=lzma. This means that xz emulating lzma 2870207753Smm doesn't decompress .xz files, while before this 2871207753Smm commit it did. The new way is slightly simpler in 2872207753Smm code and especially in upcoming documentation. 2873207753Smm 2874207753Smmcommit b0063023f8adb06ea735ec4af5c6f5b7bdb8e84d 2875207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2876207753SmmDate: Fri May 22 11:29:50 2009 +0300 2877207753Smm 2878207753Smm Make the default memory usage limit 40 % of RAM for both 2879207753Smm compressing and decompressing. This should be OK now that 2880207753Smm xz automatically scales down the compression settings if 2881207753Smm they would exceed the memory usage limit (earlier, the limit 2882207753Smm for compression was increased to 90 % because low limit broke 2883207753Smm scripts that used "xz -9" on systems with low RAM). 2884207753Smm 2885207753Smm Support spcifying the memory usage limit as a percentage 2886207753Smm of RAM (e.g. --memory=50%). 2887207753Smm 2888207753Smm Support --threads=0 to reset the thread limit to the default 2889207753Smm value (number of available CPU cores). Use UINT32_MAX instead 2890207753Smm of SIZE_MAX as the maximum in args.c. hardware.c was already 2891207753Smm expecting uint32_t value. 2892207753Smm 2893207753Smm Cleaned up the output of --help and --long-help. 2894207753Smm 2895207753Smmcommit 071b825b23911a69dd1cd2f8cda004ef8a781fae 2896207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2897207753SmmDate: Thu May 21 17:22:01 2009 +0300 2898207753Smm 2899207753Smm Support special value "max" where xz and xzdec accept an integer. 2900207753Smm Don't round the memory usage limit in xzdec --help to avoid 2901207753Smm an integer overflow and to not give wrong impression that 2902207753Smm the limit is high enough when it may not actually be. 2903207753Smm 2904207753Smmcommit 03ca67fd37dd43fa7f590de340899cd497c10802 2905207753SmmAuthor: ABCD <en.abcd@gmail.com> 2906207753SmmDate: Wed May 20 17:31:18 2009 -0400 2907207753Smm 2908207753Smm Install lzdiff, lzgrep, and lzmore as symlinks 2909207753Smm 2910207753Smm This adds lzdiff, lzgrep, and lzmore to the list of symlinks to install. 2911207753Smm It also installs symlinks for the manual pages and removes the new 2912207753Smm symlinks on uninstall. 2913207753Smm 2914207753Smmcommit a6f43e64128a6da5cd641de1e1e527433b3e5638 2915207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2916207753SmmDate: Sat May 2 16:10:14 2009 +0300 2917207753Smm 2918207753Smm Use a GCC-specific #pragma instead of GCC-specific 2919207753Smm -Wno-uninitialized to silence a bogus warning. 2920207753Smm 2921207753Smmcommit f6ce63ebdb45a857c8949960c83c9580ae888951 2922207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2923207753SmmDate: Sat May 2 14:46:50 2009 +0300 2924207753Smm 2925207753Smm Removed --disable-encoder and --disable-decoder. Use the values 2926207753Smm given to --enable-encoders and --enable-decoders to determine 2927207753Smm if any encoder or decoder support is wanted. 2928207753Smm 2929207753Smmcommit be06858d5cf8ba46557395035d821dc332f3f830 2930207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2931207753SmmDate: Fri May 1 11:28:52 2009 +0300 2932207753Smm 2933207753Smm Remove docs that are too outdated to be updated 2934207753Smm (rewrite will be better). 2935207753Smm 2936207753Smmcommit 0255401e57c96af87c6b159eca28974e79430a82 2937207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2938207753SmmDate: Fri May 1 11:21:46 2009 +0300 2939207753Smm 2940207753Smm Added documentation about the legacy .lzma file format. 2941207753Smm 2942207753Smmcommit 1496ff437c46f38303e0e94c511ca604b3a11f85 2943207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2944207753SmmDate: Fri May 1 11:20:23 2009 +0300 2945207753Smm 2946207753Smm Renamed the file format specification to xz-file-format.txt 2947207753Smm which is the filename used on the WWW. 2948207753Smm 2949207753Smmcommit 21c6b94373d239d7e86bd480fcd558e30391712f 2950207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2951207753SmmDate: Tue Apr 28 23:08:32 2009 +0300 2952207753Smm 2953207753Smm Fixed a crash in liblzma. 2954207753Smm 2955207753Smm liblzma tries to avoid useless free()/malloc() pairs in 2956207753Smm initialization when multiple files are handled using the 2957207753Smm same lzma_stream. This didn't work with filter chains 2958207753Smm due to comparison of wrong pointers in lzma_next_coder_init(), 2959207753Smm making liblzma think that no memory reallocation is needed 2960207753Smm even when it actually is. 2961207753Smm 2962207753Smm Easy way to trigger this bug is to decompress two files with 2963207753Smm a single xz command. The first file should have e.g. x86+LZMA2 2964207753Smm as the filter chain, and the second file just LZMA2. 2965207753Smm 2966207753Smmcommit e518d167aa5958e469982f4fb3a24b9b6a2b5d1c 2967207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2968207753SmmDate: Wed Apr 15 14:13:38 2009 +0300 2969207753Smm 2970207753Smm Fix uint32_t -> size_t in ARM and ARM-Thumb filters. 2971207753Smm 2972207753Smm On 64-bit system it would have gone into infinite 2973207753Smm loop if a single input buffer was over 4 GiB (unlikely). 2974207753Smm 2975207753Smmcommit 31decdce041581e57c0d8a407d4795b114ef27ca 2976207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2977207753SmmDate: Tue Apr 14 11:48:46 2009 +0300 2978207753Smm 2979207753Smm Minor fixes to test files' README. 2980207753Smm 2981207753Smmcommit 4787d654434891c7df5b43959b0d2873718f06e0 2982207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2983207753SmmDate: Mon Apr 13 16:36:41 2009 +0300 2984207753Smm 2985207753Smm Updated history.txt. 2986207753Smm 2987207753Smmcommit 2f0bc9cd40f709152a0177c8e585c0757e9af9c9 2988207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2989207753SmmDate: Mon Apr 13 14:49:48 2009 +0300 2990207753Smm 2991207753Smm Quick & dirty update to support xz in diff/grep/more scripts. 2992207753Smm 2993207753Smmcommit 02ddf09bc3079b3e17297729b9e43f14d407b8fc 2994207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 2995207753SmmDate: Mon Apr 13 11:27:40 2009 +0300 2996207753Smm 2997207753Smm Put the interesting parts of XZ Utils into the public domain. 2998207753Smm Some minor documentation cleanups were made at the same time. 2999207753Smm 3000207753Smmcommit e79c42d854657ae7f75613bd80c1a35ff7c525cb 3001207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3002207753SmmDate: Fri Apr 10 11:17:02 2009 +0300 3003207753Smm 3004207753Smm Fix off-by-one in LZ decoder. 3005207753Smm 3006207753Smm Fortunately, this bug had no security risk other than accepting 3007207753Smm some corrupt files as valid. 3008207753Smm 3009207753Smmcommit 94eb9ad46f1fded6d8369cf3d38bb9754c1375af 3010207753SmmAuthor: Pavel Roskin <proski@gnu.org> 3011207753SmmDate: Tue Mar 31 12:15:01 2009 -0400 3012207753Smm 3013207753Smm Fix minor typos in README 3014207753Smm 3015207753Smmcommit 9bab5336ebd765ec4e12252f416eefdf04eba750 3016207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3017207753SmmDate: Tue Mar 31 21:52:51 2009 +0300 3018207753Smm 3019207753Smm Add a note and work-around instructions to README about 3020207753Smm problems detecting a C99 compiler when some standard 3021207753Smm headers are missing. 3022207753Smm 3023207753Smmcommit a0497ff7a06f9350349264fe9b52dfefc6d53ead 3024207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3025207753SmmDate: Wed Mar 18 16:54:38 2009 +0200 3026207753Smm 3027207753Smm Updated THANKS. 3028207753Smm 3029207753Smmcommit 390e69887fc5e0a108eb41203bed9acd100a3d76 3030207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3031207753SmmDate: Wed Mar 18 16:51:41 2009 +0200 3032207753Smm 3033207753Smm Fix wrong macro names in lc_cpucores.m4 and cpucores.h. 3034207753Smm Thanks to Bert Wesarg. 3035207753Smm 3036207753Smmcommit 0df9299e2478c2a0c62c05b1ae14a85a353e20d6 3037207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3038207753SmmDate: Sun Mar 1 09:03:08 2009 +0200 3039207753Smm 3040207753Smm Test for Linux-specific sysinfo() only on Linux systems. 3041207753Smm Some other systems have sysinfo() with different semantics. 3042207753Smm 3043207753Smmcommit cf751edfde3ad6e088dc18e0522d31ae38405933 3044207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3045207753SmmDate: Sun Mar 1 09:00:06 2009 +0200 3046207753Smm 3047207753Smm Added AC_CONFIG_MACRO_DIR to configure.ac. 3048207753Smm 3049207753Smmcommit 63df14c57dee7c461717784287056688482a7eb9 3050207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3051207753SmmDate: Sun Mar 1 08:58:41 2009 +0200 3052207753Smm 3053207753Smm Fix the Autoconf test for getopt_long replacement. 3054207753Smm It was broken by e114502b2bc371e4a45449832cb69be036360722. 3055207753Smm 3056207753Smmcommit fd6a380f4eda4f00be5f2aa8d222992cd74a714f 3057207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3058207753SmmDate: Sun Feb 22 19:07:54 2009 +0200 3059207753Smm 3060207753Smm Add a rough explanation of --extreme to output of --help. 3061207753Smm 3062207753Smmcommit 68bf7ac2984d3627369a240ef0491934d53f7899 3063207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3064207753SmmDate: Sun Feb 22 18:52:49 2009 +0200 3065207753Smm 3066207753Smm Fixes to progress message handling in xz: 3067207753Smm 3068207753Smm - Don't use Windows-specific code on Windows. The old code 3069207753Smm required at least Windows 2000. Now it should work on 3070207753Smm Windows 98 and later, and maybe on Windows 95 too. 3071207753Smm 3072207753Smm - Use less precision when showing estimated remaining time. 3073207753Smm 3074207753Smm - Fix some small design issues. 3075207753Smm 3076207753Smmcommit 47c2e21f82242f50f18713a27d644c2c94ab3fea 3077207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3078207753SmmDate: Wed Feb 18 13:00:10 2009 +0200 3079207753Smm 3080207753Smm Added files missing from the previous commit. 3081207753Smm 3082207753Smmcommit 489a3dbaa0465f04400804e956a1cfbbee3654a2 3083207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3084207753SmmDate: Tue Feb 17 10:43:00 2009 +0200 3085207753Smm 3086207753Smm Added lzma_easy_buffer_encode(). Splitted easy.c into small 3087207753Smm pieces to avoid unneeded dependencies making statically 3088207753Smm linked applications bigger than needed. 3089207753Smm 3090207753Smmcommit 7494816ab08d82f4d6409788825930c4e43cfd0d 3091207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3092207753SmmDate: Sun Feb 15 15:48:45 2009 +0200 3093207753Smm 3094207753Smm Make physmem.h work on old Windows versions. 3095207753Smm Thanks to Hongbo Ni for the original patch. 3096207753Smm 3097207753Smmcommit 11ae4ae35fd70182c713f2d914b7cb1143bc76f0 3098207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3099207753SmmDate: Sat Feb 14 20:44:52 2009 +0200 3100207753Smm 3101207753Smm Fix microsecond vs. nanosecond confusion in my_time(). 3102207753Smm 3103207753Smmcommit 3084d662d2646ab7eb58daf0dc32cf3f9a74eec7 3104207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3105207753SmmDate: Sat Feb 14 00:45:29 2009 +0200 3106207753Smm 3107207753Smm Cleanups to the code that detects the amount of RAM and 3108207753Smm the number of CPU cores. Added support for using sysinfo() 3109207753Smm on Linux systems whose libc lacks appropriate sysconf() 3110207753Smm support (at least dietlibc). The Autoconf macros were 3111207753Smm split into separate files, and CPU core count detection 3112207753Smm was moved from hardware.c to cpucores.h. The core count 3113207753Smm isn't used for anything real for now, so a problematic 3114207753Smm part in process.c was commented out. 3115207753Smm 3116207753Smmcommit 9c62371eab2706c46b1072f5935e28cb4cd9dca8 3117207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3118207753SmmDate: Fri Feb 13 18:23:50 2009 +0200 3119207753Smm 3120207753Smm Initial port to DOS using DJGPP. 3121207753Smm 3122207753Smmcommit 0dae8b7751d09e9c5a482d5519daaee4800ce203 3123207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3124207753SmmDate: Fri Feb 13 18:02:05 2009 +0200 3125207753Smm 3126207753Smm Windows port: Take advantage of the version number macros. 3127207753Smm Now the version number is not duplicated in the 3128207753Smm Windows-specific files anymore. 3129207753Smm 3130207753Smmcommit fdbc0cfa71f7d660855098a609175ba384259529 3131207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3132207753SmmDate: Fri Feb 13 18:00:03 2009 +0200 3133207753Smm 3134207753Smm Changed how the version number is specified in various places. 3135207753Smm Now configure.ac will get the version number directly from 3136207753Smm src/liblzma/api/lzma/version.h. The intent is to reduce the 3137207753Smm number of places where the version number is duplicated. In 3138207753Smm future, support for displaying Git commit ID may be added too. 3139207753Smm 3140207753Smmcommit 1d924e584b146136989f48c13fff2632896efb3d 3141207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3142207753SmmDate: Fri Feb 13 17:30:30 2009 +0200 3143207753Smm 3144207753Smm Fix handling of integrity check type in the xz command line tool. 3145207753Smm 3146207753Smmcommit 96c46df7deb231ea68a03d8d1da9de4c774e36d8 3147207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3148207753SmmDate: Fri Feb 13 17:29:02 2009 +0200 3149207753Smm 3150207753Smm Improve support for DOS-like systems. 3151207753Smm Here DOS-like means DOS, Windows, and OS/2. 3152207753Smm 3153207753Smmcommit b6a30ee8c2de60ecd722cd05223e4ba72f822e33 3154207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3155207753SmmDate: Wed Feb 11 20:02:32 2009 +0200 3156207753Smm 3157207753Smm Remove dead directories from .gitignore. 3158207753Smm 3159207753Smmcommit 1ec5b0027911d94cb6f98892cbc690f818d8a861 3160207753SmmAuthor: Jim Meyering <jim@meyering.net> 3161207753SmmDate: Wed Feb 11 14:45:14 2009 +0100 3162207753Smm 3163207753Smm .gitignore vs. Makefiles 3164207753Smm 3165207753Smm How about this for those of us who do srcdir builds? 3166207753Smm 3167207753Smmcommit 154f5aec2de201c674841de4fcc9804c2a87af07 3168207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3169207753SmmDate: Tue Feb 10 21:48:35 2009 +0200 3170207753Smm 3171207753Smm Removed Makefile from .gitignore since not all Makefiles 3172207753Smm in the repository are generated by Autotools. People 3173207753Smm should do test builds in a separate build directory anyway. 3174207753Smm 3175207753Smmcommit e605c2663691b0a4c307786aa368d124ea081daa 3176207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3177207753SmmDate: Tue Feb 10 21:48:05 2009 +0200 3178207753Smm 3179207753Smm Added resource files for the Windows build. 3180207753Smm 3181207753Smmcommit a3bbbe05d32b1f7ea9eb98805df4dda2e811b476 3182207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3183207753SmmDate: Mon Feb 9 14:54:31 2009 +0200 3184207753Smm 3185207753Smm Let the user specify custom CFLAGS on the make command 3186207753Smm line. Previously custom CFLAGS worked only when they were 3187207753Smm passed to configure. 3188207753Smm 3189207753Smmcommit 53f7598998b1860a69c51243b5d2e34623c6bf60 3190207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3191207753SmmDate: Sun Feb 8 21:35:11 2009 +0200 3192207753Smm 3193207753Smm Fix aliasing issue in physmem.h. 3194207753Smm 3195207753Smmcommit 0e27028d74c5c7a8e036ae2a9b8cecb0ac79d3a6 3196207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3197207753SmmDate: Sun Feb 8 18:24:50 2009 +0200 3198207753Smm 3199207753Smm Add a separate internal function to initialize the CRC32 3200207753Smm table, which is used also by LZ encoder. This was needed 3201207753Smm because calling lzma_crc32() and ignoring the result is 3202207753Smm a no-op due to lzma_attr_pure. 3203207753Smm 3204207753Smmcommit ae1ad9af54210c9a2be336b1316532da5071516c 3205207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3206207753SmmDate: Sun Feb 8 18:17:05 2009 +0200 3207207753Smm 3208207753Smm Make "xz --force" to write to terminal as the error 3209207753Smm message suggests. 3210207753Smm 3211207753Smmcommit 79e25eded48d2fe33f31441ab7a034f902e335f8 3212207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3213207753SmmDate: Sun Feb 8 10:37:50 2009 +0200 3214207753Smm 3215207753Smm Support both slash and backslash as path component 3216207753Smm separator on Windows when parsing argv[0]. 3217207753Smm 3218207753Smmcommit bc7c7109cc4410055a888c1c70cbd1c9445c4361 3219207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3220207753SmmDate: Sat Feb 7 23:18:13 2009 +0200 3221207753Smm 3222207753Smm Omit the wrong and (even if corrected) nowadays useless rm 3223207753Smm from autogen.sh. 3224207753Smm 3225207753Smmcommit edfc2031e56f8a2ccda063f02936b3a848d88723 3226207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3227207753SmmDate: Sat Feb 7 21:41:52 2009 +0200 3228207753Smm 3229207753Smm Updated THANKS. 3230207753Smm 3231207753Smmcommit 880c3309386aac58fc4f3d7ca99bd31bcb1526a3 3232207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3233207753SmmDate: Sat Feb 7 21:17:07 2009 +0200 3234207753Smm 3235207753Smm Make it easy to choose if command line tools should be 3236207753Smm linked statically or dynamically against liblzma. The 3237207753Smm default is still to use static liblzma, but it can now 3238207753Smm be changed by passing --enable-dynamic to configure. 3239207753Smm Thanks to Mike Frysinger for the original patch. 3240207753Smm 3241207753Smm Fixed a few minor bugs in configure.ac. 3242207753Smm 3243207753Smmcommit 3f86532407e4ace3debb62be16035e009b56ca36 3244207753SmmAuthor: Mike Frysinger <vapier@gentoo.org> 3245207753SmmDate: Fri Feb 6 23:38:39 2009 -0500 3246207753Smm 3247207753Smm add gitignore files 3248207753Smm 3249207753Smm Signed-off-by: Mike Frysinger <vapier@gentoo.org> 3250207753Smm 3251207753Smmcommit bd7ca1dad5c146b6217799ffaa230c32d207a3e5 3252207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3253207753SmmDate: Sat Feb 7 17:07:52 2009 +0200 3254207753Smm 3255207753Smm Assume 32 MiB of RAM on unsupported operating systems like 3256207753Smm the comment in hardware.c already said. 3257207753Smm 3258207753Smmcommit d0ab8c1c73ae712adb0d26fbb9da762d99a63618 3259207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3260207753SmmDate: Sat Feb 7 16:26:58 2009 +0200 3261207753Smm 3262207753Smm MinGW support: Don't build fastpos_tablegen.c as part of 3263207753Smm liblzma. Build both static and dynamic liblzma, and also 3264207753Smm static and dynamic versions of the command line tools. 3265207753Smm 3266207753Smmcommit bfd91198e44a52bd9bfe3cd6dcae5edab7c6eb45 3267207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3268207753SmmDate: Sat Feb 7 15:55:47 2009 +0200 3269207753Smm 3270207753Smm Support LZMA_API_STATIC in assembler files to 3271207753Smm avoid __declspec(dllexport) equivalent. 3272207753Smm 3273207753Smmcommit 3306cf3883492720b3c34baa02f4eb4227d91c73 3274207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3275207753SmmDate: Sat Feb 7 11:11:50 2009 +0200 3276207753Smm 3277207753Smm Introduced LZMA_API_STATIC macro, which the applications 3278207753Smm need to #define when linking against static liblzma on 3279207753Smm platforms like Windows. Most developers don't need to 3280207753Smm care about LZMA_API_STATIC at all. 3281207753Smm 3282207753Smmcommit b719e63c5f4c91d2d5e2ea585d4c055ec3767d0b 3283207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3284207753SmmDate: Fri Feb 6 16:55:45 2009 +0200 3285207753Smm 3286207753Smm Another grammar fix 3287207753Smm 3288207753Smmcommit fe5434f940f75fec3611cf9d9edf78c4da8ac760 3289207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3290207753SmmDate: Fri Feb 6 12:30:23 2009 +0200 3291207753Smm 3292207753Smm Grammar fix in README. 3293207753Smm 3294207753Smmcommit 3dfa58a9eedf5a0e566452b078801c9cbcf7a245 3295207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3296207753SmmDate: Fri Feb 6 10:06:32 2009 +0200 3297207753Smm 3298207753Smm Some MSYS installations (e.g. MsysGit) don't include 3299207753Smm install.exe, so don't rely on it. 3300207753Smm 3301207753Smmcommit 975d8fd72a5148d46b2e1745f7a211cf1dfd9d31 3302207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3303207753SmmDate: Fri Feb 6 09:13:15 2009 +0200 3304207753Smm 3305207753Smm Recreated the BCJ test files for x86 and SPARC. The old files 3306207753Smm were linked with crt*.o, which are copyrighted, and thus the 3307207753Smm old test files were not in the public domain as a whole. They 3308207753Smm are freely distributable though, but it is better to be careful 3309207753Smm and avoid including any copyrighted pieces in the test files. 3310207753Smm The new files are just compiled and assembled object files, 3311207753Smm and thus don't contain any copyrighted code. 3312207753Smm 3313207753Smmcommit 094b1b09a531f0d201ec81f2b07346a995fd80b9 3314207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3315207753SmmDate: Thu Feb 5 21:21:27 2009 +0200 3316207753Smm 3317207753Smm Add the "windows" directory to EXTRA_DIST. 3318207753Smm 3319207753Smmcommit e1c3412eec7acec7ca3b32c9c828f3147dc65b49 3320207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3321207753SmmDate: Thu Feb 5 09:17:51 2009 +0200 3322207753Smm 3323207753Smm Added initial experimental makefile for use with MinGW. 3324207753Smm 3325207753Smmcommit 75905a9afc0ee89954ede7d08af70d1148bf0fd9 3326207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3327207753SmmDate: Thu Feb 5 09:12:57 2009 +0200 3328207753Smm 3329207753Smm Various code cleanups the the xz command line tool. 3330207753Smm It now builds with MinGW. 3331207753Smm 3332207753Smmcommit d0c0b9e94e0af59d1d8f7f4829695d6efe19ccfe 3333207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3334207753SmmDate: Tue Feb 3 12:15:17 2009 +0200 3335207753Smm 3336207753Smm Another utime() fix. 3337207753Smm 3338207753Smmcommit ccf92a29e8c7234284f1568c1ec0fd7cb98356ca 3339207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3340207753SmmDate: Tue Feb 3 10:41:11 2009 +0200 3341207753Smm 3342207753Smm Fix wrong filename argument for utime() and utimes(). 3343207753Smm This doesn't affect most systems, since most systems 3344207753Smm have better functions available. 3345207753Smm 3346207753Smmcommit 99c1c2abfae2e87f3c17e929783e6d1bb7a3f302 3347207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3348207753SmmDate: Mon Feb 2 21:19:01 2009 +0200 3349207753Smm 3350207753Smm Updated the x86 assembler code: 3351207753Smm - Use call/ret pair to get instruction pointer for PIC. 3352207753Smm - Use PIC only if PIC or __PIC__ is #defined. 3353207753Smm - The code should work on MinGW and Darwin in addition 3354207753Smm to GNU/Linux and Solaris. 3355207753Smm 3356207753Smmcommit 22a0c6dd940b78cdac2f4a4b4b0e7cc0ac15021f 3357207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3358207753SmmDate: Mon Feb 2 20:14:03 2009 +0200 3359207753Smm 3360207753Smm Modify LZMA_API macro so that it works on Windows with 3361207753Smm other compilers than MinGW. This may hurt readability 3362207753Smm of the API headers slightly, but I don't know any 3363207753Smm better way to do this. 3364207753Smm 3365207753Smmcommit 8dd7b6052e18621e2e6c62f40f762ee88bd3eb65 3366207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3367207753SmmDate: Sun Feb 1 22:40:35 2009 +0200 3368207753Smm 3369207753Smm Fix a bug in lzma_block_buffer_decode(), although this 3370207753Smm function should be rewritten anyway. 3371207753Smm 3372207753Smmcommit 55fd41431e61fb8178858283d636b6781e33e847 3373207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3374207753SmmDate: Sun Feb 1 22:39:07 2009 +0200 3375207753Smm 3376207753Smm Added initial version of raw buffer-to-buffer coding 3377207753Smm functions, and cleaned up filter.h API header a little. 3378207753Smm May be very buggy, not tested yet. 3379207753Smm 3380207753Smmcommit 3e54ecee5cad30a5ca361a88a99230407abc0699 3381207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3382207753SmmDate: Sun Feb 1 00:11:20 2009 +0200 3383207753Smm 3384207753Smm Fix missing newlines in xzdec.c. 3385207753Smm 3386207753Smmcommit d64ca34f1b6f34e86adefc7f735b4eff8e6d4a35 3387207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3388207753SmmDate: Sun Feb 1 00:10:07 2009 +0200 3389207753Smm 3390207753Smm Use __cdecl also for function pointers in liblzma API when 3391207753Smm on Windows. 3392207753Smm 3393207753Smmcommit 6a2eb54092fc625d59921a607ff68cd1a90aa898 3394207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3395207753SmmDate: Sat Jan 31 11:01:48 2009 +0200 3396207753Smm 3397207753Smm Add LZMA_API to liblzma API headers. It's useful at least 3398207753Smm on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h 3399207753Smm has to be #included separately where needed. 3400207753Smm 3401207753Smmcommit d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b 3402207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3403207753SmmDate: Sat Jan 31 10:13:09 2009 +0200 3404207753Smm 3405207753Smm Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows. 3406207753Smm 3407207753Smmcommit 2dbdc5befb33c3703e4609809101047c67caf343 3408207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3409207753SmmDate: Sat Jan 31 10:02:52 2009 +0200 3410207753Smm 3411207753Smm Fix two lines in lzma.h on which the # wasn't at the 3412207753Smm beginning of the line. 3413207753Smm 3414207753Smmcommit 4ab760109106dc04f39dd81c97d50f528d1b51c1 3415207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3416207753SmmDate: Sat Jan 31 09:55:05 2009 +0200 3417207753Smm 3418207753Smm Add support for using liblzma headers in MSVC, which has no 3419207753Smm stdint.h or inttypes.h. 3420207753Smm 3421207753Smmcommit b2172cf823d3be34cb0246cb4cb32d105e2a34c9 3422207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3423207753SmmDate: Sat Jan 31 08:49:54 2009 +0200 3424207753Smm 3425207753Smm Fix # -> ## in a macro in lzma.h. 3426207753Smm 3427207753Smmcommit 1aae8698746d3c87a93f8398cdde2de9ba1f7208 3428207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3429207753SmmDate: Fri Jan 30 18:50:16 2009 +0200 3430207753Smm 3431207753Smm Updated README. 3432207753Smm 3433207753Smmcommit f54bcf6f80d585236bc03ce49f7c73e1abaa17eb 3434207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3435207753SmmDate: Fri Jan 30 00:29:58 2009 +0200 3436207753Smm 3437207753Smm Remove dangling crc64_init.c. 3438207753Smm 3439207753Smmcommit 982da7ed314398420c38bf154a8f759d5f18b480 3440207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3441207753SmmDate: Wed Jan 28 17:16:38 2009 +0200 3442207753Smm 3443207753Smm The .xz file format specification version 1.0.0 is now 3444207753Smm officially released. The format has been technically the same 3445207753Smm since 2008-11-19, but now that it is frozen, people can start 3446207753Smm using it without a fear that the format will break. 3447207753Smm 3448207753Smmcommit c4683a660b4372156bdaf92f0cdc54a58f95ee6f 3449207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3450207753SmmDate: Wed Jan 28 08:45:59 2009 +0200 3451207753Smm 3452207753Smm Updated THANKS. 3453207753Smm 3454207753Smmcommit 3241317093595db9f79104faafe93cb989c9f858 3455207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3456207753SmmDate: Wed Jan 28 08:43:26 2009 +0200 3457207753Smm 3458207753Smm Fix uninitialized variables in alone_decoder.c. This bug was 3459207753Smm triggered by the previous commit, since these variables were 3460207753Smm not used by anything before support for a preset dictionary. 3461207753Smm 3462207753Smmcommit f76e39cf930f888d460b443d18f977ebedea8b2a 3463207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3464207753SmmDate: Tue Jan 27 18:36:05 2009 +0200 3465207753Smm 3466207753Smm Added initial support for preset dictionary for raw LZMA1 3467207753Smm and LZMA2. It is not supported by the .xz format or the xz 3468207753Smm command line tool yet. 3469207753Smm 3470207753Smmcommit 449b8c832b26c3633f3bec60095e57d2d3ada1f3 3471207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3472207753SmmDate: Mon Jan 26 20:09:17 2009 +0200 3473207753Smm 3474207753Smm Regenerate the CRC tables without trailing blanks. 3475207753Smm 3476207753Smmcommit 850f7400428dc9c5fd08a2f35a5bd2c9e45aede2 3477207753SmmAuthor: Jim Meyering <meyering@redhat.com> 3478207753SmmDate: Mon Jan 19 21:37:16 2009 +0100 3479207753Smm 3480207753Smm remove trailing blanks from all but .xz files 3481207753Smm 3482207753Smmcommit 667481f1aad34e1ed15738e7913a9c7e256b4cf5 3483207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3484207753SmmDate: Mon Jan 26 14:34:10 2009 +0200 3485207753Smm 3486207753Smm Add lzma_block_buffer_decode(). 3487207753Smm 3488207753Smmcommit 5fb34d8324d3e7e0061df25d0086b64c8726b19d 3489207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3490207753SmmDate: Mon Jan 26 14:33:28 2009 +0200 3491207753Smm 3492207753Smm Add more sanity checks to lzma_stream_buffer_decode(). 3493207753Smm 3494207753Smmcommit c129748675a5daa8838df92bde32cc04f6ce61ba 3495207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3496207753SmmDate: Mon Jan 26 14:33:13 2009 +0200 3497207753Smm 3498207753Smm Avoid hardcoded constant in easy.c. 3499207753Smm 3500207753Smmcommit 1859d22d75e072463db74c25bc3f5a7992e5fdf6 3501207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3502207753SmmDate: Mon Jan 26 13:06:49 2009 +0200 3503207753Smm 3504207753Smm Tiny bit better sanity check in block_util.c 3505207753Smm 3506207753Smmcommit 2c5fe958e4bbe9b147b10c255955dfe2827fb8e7 3507207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3508207753SmmDate: Sun Jan 25 01:35:56 2009 +0200 3509207753Smm 3510207753Smm Fix a dumb bug in Block decoder, which made it return 3511207753Smm LZMA_DATA_ERROR with valid data. The bug was added in 3512207753Smm e114502b2bc371e4a45449832cb69be036360722. 3513207753Smm 3514207753Smmcommit c81f13ff29271de7293f8af3d81848b1dcae3d19 3515207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3516207753SmmDate: Fri Jan 23 22:27:50 2009 +0200 3517207753Smm 3518207753Smm Added lzma_stream_buffer_decode() and made minor cleanups. 3519207753Smm 3520207753Smmcommit 0b3318661ce749550b8531dfd469639a08930391 3521207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3522207753SmmDate: Thu Jan 22 12:53:33 2009 +0200 3523207753Smm 3524207753Smm Fix a comment. 3525207753Smm 3526207753Smmcommit 9ec80355a7212a0a2f8c89d98e51b1d8b4e34eec 3527207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3528207753SmmDate: Tue Jan 20 16:37:27 2009 +0200 3529207753Smm 3530207753Smm Add some single-call buffer-to-buffer coding functions. 3531207753Smm 3532207753Smmcommit d8b58d099340f8f4007b24b211ee41a7210c061c 3533207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3534207753SmmDate: Tue Jan 20 13:45:41 2009 +0200 3535207753Smm 3536207753Smm Block encoder cleanups 3537207753Smm 3538207753Smmcommit 0c09810cb3635cb575cb54e694d41523e7d0a335 3539207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3540207753SmmDate: Tue Jan 20 10:35:15 2009 +0200 3541207753Smm 3542207753Smm Use LZMA_PROG_ERROR in lzma_code() as documented in base.h. 3543207753Smm 3544207753Smmcommit 2f1a8e8eb898f6c036cde55d153ad348bfab3c00 3545207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3546207753SmmDate: Mon Jan 19 22:53:18 2009 +0200 3547207753Smm 3548207753Smm Fix handling of non-fatal errors in lzma_code(). 3549207753Smm 3550207753Smmcommit 4810b6bc25087be872960b9dd1d11ff07735dc88 3551207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3552207753SmmDate: Mon Jan 19 14:00:33 2009 +0200 3553207753Smm 3554207753Smm Move some LZMA2 constants to lzma2_encoder.h so that they 3555207753Smm can be used outside lzma2_encoder.c. 3556207753Smm 3557207753Smmcommit 00be5d2e09f9c7a6a8563465ad8b8042866817a4 3558207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3559207753SmmDate: Mon Jan 19 13:52:36 2009 +0200 3560207753Smm 3561207753Smm Remove dead code. 3562207753Smm 3563207753Smmcommit 128586213f77c9bd82b7e9a62927f6d0c3769d85 3564207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3565207753SmmDate: Sat Jan 17 14:24:25 2009 +0200 3566207753Smm 3567207753Smm Beta was supposed to be API stable but I had forgot to rename 3568207753Smm lzma_memlimit_encoder and lzma_memlimit_decoder to 3569207753Smm lzma_raw_encoder_memlimit and lzma_raw_decoder_memlimit. :-( 3570207753Smm Now it is fixed. Hopefully it doesn't cause too much trouble 3571207753Smm to those who already thought API is stable. 3572207753Smm 3573207753Smmcommit b056379490be5c584c264a967f0540041a163a1e 3574207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3575207753SmmDate: Thu Jan 15 14:29:22 2009 +0200 3576207753Smm 3577207753Smm Updated THANKS. 3578207753Smm 3579207753Smmcommit dc8f3be06d54ef6e6cfb5134dd3d25edd08cef89 3580207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3581207753SmmDate: Thu Jan 15 14:27:32 2009 +0200 3582207753Smm 3583207753Smm Fixed a bug in 7z2lzma.bash to make it work with .7z files 3584207753Smm that use something else than 2^n as the dictionary size. 3585207753Smm Thanks to Dan Shechter for the bug report. 3586207753Smm 3587207753Smmcommit 8286a60b8f4bd5accfbc9d229d2204bac31994f2 3588207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3589207753SmmDate: Wed Jan 7 18:41:15 2009 +0200 3590207753Smm 3591207753Smm Use pthread_sigmask() instead of sigprocmask() when pthreads 3592207753Smm are enabled. 3593207753Smm 3594207753Smmcommit 4fd43cb3a906f6da2943f69239ee984c4787c9a9 3595207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3596207753SmmDate: Wed Dec 31 20:01:00 2008 +0200 3597207753Smm 3598207753Smm Bumped version to 4.999.8beta right after the release 3599207753Smm of 4.999.7beta. 3600207753Smm 3601207753Smmcommit 061748f5932719643cda73383db715167d543c22 3602207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3603207753SmmDate: Wed Dec 31 18:59:02 2008 +0200 3604207753Smm 3605207753Smm Disable Subblock filter from test_compress.sh since it is 3606207753Smm disabled by default in configure.ac. 3607207753Smm 3608207753Smmcommit 9c45658ddc8bd4a7819ef8547d3e7ccf73203e78 3609207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3610207753SmmDate: Wed Dec 31 17:44:20 2008 +0200 3611207753Smm 3612207753Smm Disable both Subblock encoder and decoder my default, 3613207753Smm since they are not finished and may have security issues too. 3614207753Smm 3615207753Smmcommit b59f1e98f50694cf6a8f1b342fd878feebdb2f88 3616207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3617207753SmmDate: Wed Dec 31 17:42:50 2008 +0200 3618207753Smm 3619207753Smm Update some files in debug directory. 3620207753Smm 3621207753Smmcommit d1d17a40d33a9682424ca37282813492f2cba6d0 3622207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3623207753SmmDate: Wed Dec 31 17:41:46 2008 +0200 3624207753Smm 3625207753Smm Prepare for 4.999.7beta release. 3626207753Smm 3627207753Smmcommit 88d3e6b0b18e24142b6d3b41dc1b84b00c49fef3 3628207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3629207753SmmDate: Wed Dec 31 17:15:03 2008 +0200 3630207753Smm 3631207753Smm Cleaned up some comments in the API headers. 3632207753Smm 3633207753Smmcommit 322ecf93c961e45a1da8c4a794a7fdacefcd7f40 3634207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3635207753SmmDate: Wed Dec 31 16:29:39 2008 +0200 3636207753Smm 3637207753Smm Renamed lzma_options_simple to lzma_options_bcj in the API. 3638207753Smm The internal implementation is still using the name "simple". 3639207753Smm It may need some cleanups, so I look at it later. 3640207753Smm 3641207753Smmcommit 7eea8bec3abfed883efba66264a1452a1c04f6b0 3642207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3643207753SmmDate: Wed Dec 31 00:57:27 2008 +0200 3644207753Smm 3645207753Smm Fixed missing quoting in configure.ac. 3646207753Smm 3647207753Smmcommit 28e75f7086dbe9501d926c370375c69dfb1236ce 3648207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3649207753SmmDate: Wed Dec 31 00:48:23 2008 +0200 3650207753Smm 3651207753Smm Updated src/liblzma/Makefile.am to use liblzma.pc.in, which 3652207753Smm should have been in the previous commit. 3653207753Smm 3654207753Smmcommit 7ed9d943b31d3ee9c5fb2387e84a241ba33afe90 3655207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3656207753SmmDate: Wed Dec 31 00:30:49 2008 +0200 3657207753Smm 3658207753Smm Remove lzma_init() and other init functions from liblzma API. 3659207753Smm Half of developers were already forgetting to use these 3660207753Smm functions, which could have caused total breakage in some future 3661207753Smm liblzma version or even now if --enable-small was used. Now 3662207753Smm liblzma uses pthread_once() to do the initializations unless 3663207753Smm it has been built with --disable-threads which make these 3664207753Smm initializations thread-unsafe. 3665207753Smm 3666207753Smm When --enable-small isn't used, liblzma currently gets needlessly 3667207753Smm linked against libpthread (on systems that have it). While it is 3668207753Smm stupid for now, liblzma will need threads in future anyway, so 3669207753Smm this stupidity will be temporary only. 3670207753Smm 3671207753Smm When --enable-small is used, different code CRC32 and CRC64 is 3672207753Smm now used than without --enable-small. This made the resulting 3673207753Smm binary slightly smaller, but the main reason was to clean it up 3674207753Smm and to handle the lack of lzma_init_check(). 3675207753Smm 3676207753Smm The pkg-config file lzma.pc was renamed to liblzma.pc. I'm not 3677207753Smm sure if it works correctly and portably for static linking 3678207753Smm (Libs.private includes -pthread or other operating system 3679207753Smm specific flags). Hopefully someone complains if it is bad. 3680207753Smm 3681207753Smm lzma_rc_prices[] is now included as a precomputed array even 3682207753Smm with --enable-small. It's just 128 bytes now that it uses uint8_t 3683207753Smm instead of uint32_t. Smaller array seemed to be at least as fast 3684207753Smm as the more bloated uint32_t array on x86; hopefully it's not bad 3685207753Smm on other architectures. 3686207753Smm 3687207753Smmcommit 5cda29b5665004fc0f21d0c41d78022a6a559ab2 3688207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3689207753SmmDate: Sat Dec 27 19:40:31 2008 +0200 3690207753Smm 3691207753Smm Use 28 MiB as memory usage limit for encoding in test_compress.sh. 3692207753Smm 3693207753Smmcommit 050eb14d29e2537c014662e83599fd8a77f13c45 3694207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3695207753SmmDate: Sat Dec 27 19:32:20 2008 +0200 3696207753Smm 3697207753Smm Revert a change made in 3b34851de1eaf358cf9268922fa0eeed8278d680 3698207753Smm that was related to LZMA_MODE_FAST. The original code is slightly 3699207753Smm faster although it compresses slightly worse. But since it is fast 3700207753Smm mode, it is better to select the faster version. 3701207753Smm 3702207753Smmcommit 4820f10d0f173864f6a2ea7479663b509ac53358 3703207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3704207753SmmDate: Sat Dec 27 19:30:19 2008 +0200 3705207753Smm 3706207753Smm Some xz command line tool improvements. 3707207753Smm 3708207753Smmcommit e33194e79d8f5ce07cb4aca909b324ae75098f7e 3709207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3710207753SmmDate: Sat Dec 27 19:27:49 2008 +0200 3711207753Smm 3712207753Smm Bunch of liblzma tweaks, including some API changes. 3713207753Smm The API and ABI should now be very close to stable, 3714207753Smm although the code behind it isn't yet. 3715207753Smm 3716207753Smmcommit 4d00652e75dd2736aedc3a3a8baff3dd0ea38074 3717207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3718207753SmmDate: Thu Dec 18 13:42:52 2008 +0200 3719207753Smm 3720207753Smm Updated Makefile.am that was missing from the previous commit. 3721207753Smm 3722207753Smmcommit 634636fa56ccee6e744f78b0abed76c8940f2f8f 3723207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3724207753SmmDate: Wed Dec 17 21:49:53 2008 +0200 3725207753Smm 3726207753Smm Remove the alignment functions for now. Maybe they will 3727207753Smm be added back in some form later, but the current version 3728207753Smm wasn't modular, so it would need fixing anyway. 3729207753Smm 3730207753Smmcommit 4fed98417d1687f5eccccb42a133fde3ec81216a 3731207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3732207753SmmDate: Wed Dec 17 20:11:23 2008 +0200 3733207753Smm 3734207753Smm xz message handling improvements 3735207753Smm 3736207753Smmcommit 653e457e3756ef35e5d1b2be3523b3e4b1e9ee4d 3737207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3738207753SmmDate: Mon Dec 15 23:26:43 2008 +0200 3739207753Smm 3740207753Smm Fix a dumb bug in .lzma decoder which was introduced in 3741207753Smm the previous commit. (Probably the previous commit has 3742207753Smm other bugs too, it wasn't tested.) 3743207753Smm 3744207753Smmcommit 671a5adf1e844bfdd6fd327016c3c28694493158 3745207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3746207753SmmDate: Mon Dec 15 19:39:13 2008 +0200 3747207753Smm 3748207753Smm Bunch of liblzma API cleanups and fixes. 3749207753Smm 3750207753Smmcommit 17781c2c20fd77029cb32e77792889f2f211d69d 3751207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3752207753SmmDate: Mon Dec 15 14:26:52 2008 +0200 3753207753Smm 3754207753Smm The LZMA2 decoder fix introduced a bug to LZ decoder, 3755207753Smm which made LZ decoder return too early after dictionary 3756207753Smm reset. This fixes it. 3757207753Smm 3758207753Smmcommit f9f2d1e74398500724041f7fb3c38db35ad8c8d8 3759207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3760207753SmmDate: Mon Dec 15 11:20:22 2008 +0200 3761207753Smm 3762207753Smm Added two new test files. 3763207753Smm 3764207753Smmcommit ff7fb2c605bccc411069e07b9f11fb957aea2ddf 3765207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3766207753SmmDate: Mon Dec 15 10:01:59 2008 +0200 3767207753Smm 3768207753Smm Fix data corruption in LZMA2 decoder. 3769207753Smm 3770207753Smmcommit 1ceebcf7e1bd30b95125f0ad67a09fdb6215d613 3771207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3772207753SmmDate: Sat Dec 13 00:54:11 2008 +0200 3773207753Smm 3774207753Smm Name the package "xz" in configure.ac. 3775207753Smm 3776207753Smmcommit a94bf00d0af9b423851905b031be5a645a657820 3777207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3778207753SmmDate: Fri Dec 12 22:43:21 2008 +0200 3779207753Smm 3780207753Smm Some adjustments to GCC warning flags. The important change 3781207753Smm is the removal of -pedantic. It messes up -Werror (which I 3782207753Smm really want to keep so that I don't miss any warnings) with 3783207753Smm printf format strings that are in POSIX but not in C99. 3784207753Smm 3785207753Smmcommit 8582d392baacd2cdac07ca60041f8c661323676d 3786207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3787207753SmmDate: Wed Dec 10 01:31:00 2008 +0200 3788207753Smm 3789207753Smm Remove obsolete comment. 3790207753Smm 3791207753Smmcommit b1ae6dd731ea3636c3c2bfc7aefa71457d3328f1 3792207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3793207753SmmDate: Wed Dec 10 01:27:15 2008 +0200 3794207753Smm 3795207753Smm Use "decompression" consistently in --long-help. 3796207753Smm 3797207753Smmcommit 1ea9e7f15afd5d3981e2432710e932320597bca9 3798207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3799207753SmmDate: Wed Dec 10 01:23:58 2008 +0200 3800207753Smm 3801207753Smm Added preset=NUM to --lzma1 and --lzma2. This makes it easy 3802207753Smm to take a preset as a template and modify it a little. 3803207753Smm 3804207753Smmcommit bceb3918dbb21f34976bfdd4c171a81319de71f7 3805207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3806207753SmmDate: Tue Dec 9 17:43:31 2008 +0200 3807207753Smm 3808207753Smm Put the file format specification into the public domain. 3809207753Smm Same will be done to the actual code later. 3810207753Smm 3811207753Smmcommit 6efa2d80d46a38861016f41f0eb6fa2ec9260fe6 3812207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3813207753SmmDate: Tue Dec 9 17:41:49 2008 +0200 3814207753Smm 3815207753Smm Make the memusage functions of LZMA1 and LZMA2 encoders 3816207753Smm to validate the filter options. Add missing validation 3817207753Smm to LZMA2 encoder when options are changed in the middle 3818207753Smm of encoding. 3819207753Smm 3820207753Smmcommit f20a03206b71ff01b827bb7a932411d6a6a4e06a 3821207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3822207753SmmDate: Tue Dec 9 10:36:24 2008 +0200 3823207753Smm 3824207753Smm Updated THANKS. 3825207753Smm 3826207753Smmcommit ef7890d56453dca1aeb2e12db29b7e418d93dde4 3827207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3828207753SmmDate: Mon Dec 1 23:04:12 2008 +0200 3829207753Smm 3830207753Smm In command line tool, take advantage of memusage calculation's 3831207753Smm ability to also validate the filter chain and options (not 3832207753Smm implemented yet for all filters). 3833207753Smm 3834207753Smmcommit ccd57afa09e332d664d6d6a7498702791ea5f659 3835207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3836207753SmmDate: Mon Dec 1 22:59:28 2008 +0200 3837207753Smm 3838207753Smm Validate the filter chain before checking filter-specific 3839207753Smm memory usage. 3840207753Smm 3841207753Smmcommit c596fda40b62fe1683d0ac34d0c673dcaae2aa15 3842207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3843207753SmmDate: Mon Dec 1 22:58:22 2008 +0200 3844207753Smm 3845207753Smm Make the memusage functions of LZMA1 and LZMA2 decoders 3846207753Smm to validate the filter options. 3847207753Smm 3848207753Smmcommit c58f469be5bb9b0bdab825c6687445fd553f4f3a 3849207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3850207753SmmDate: Mon Dec 1 22:55:18 2008 +0200 3851207753Smm 3852207753Smm Added the changes for Delta filter that should have been 3853207753Smm part of 656ec87882ee74b192c4ea4a233a235eca7b04d4. 3854207753Smm 3855207753Smmcommit cd708015202dbf7585b84a8781462a20c42a324b 3856207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3857207753SmmDate: Mon Dec 1 22:50:28 2008 +0200 3858207753Smm 3859207753Smm LZMA2 decoder cleanups. Make it require new LZMA properties 3860207753Smm also in the first LZMA chunk after a dictionary reset in 3861207753Smm uncompressed chunk. 3862207753Smm 3863207753Smmcommit 656ec87882ee74b192c4ea4a233a235eca7b04d4 3864207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3865207753SmmDate: Mon Dec 1 16:30:11 2008 +0200 3866207753Smm 3867207753Smm Added lzma_delta_coder_memusage() which also validates 3868207753Smm the options. 3869207753Smm 3870207753Smmcommit 691a9155b7a28882baf37e9d1e969e32e91dbc7a 3871207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3872207753SmmDate: Sat Nov 29 10:03:49 2008 +0200 3873207753Smm 3874207753Smm Automake includes the m4 directory, so don't add it in 3875207753Smm Makefile.am separately. 3876207753Smm 3877207753Smm Updated THANKS. 3878207753Smm 3879207753Smmcommit c7007ddf06ac2b0e018d71d281c21b99f16e7ae0 3880207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3881207753SmmDate: Fri Nov 28 12:00:48 2008 +0200 3882207753Smm 3883207753Smm Tested using COLUMNS environment variable to avoid broken 3884207753Smm progress indicator but since COLUMNS isn't usually available, 3885207753Smm the code was left commented out. 3886207753Smm 3887207753Smmcommit ae65dcfde27014e4d811e1a1308aa5d0fe8debbd 3888207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3889207753SmmDate: Thu Nov 27 19:28:59 2008 +0200 3890207753Smm 3891207753Smm Cleanups to message.c. 3892207753Smm 3893207753Smmcommit a8368b75cdcd5427299001cc42839287f27b244d 3894207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3895207753SmmDate: Tue Nov 25 02:37:47 2008 +0200 3896207753Smm 3897207753Smm Remove the nowadays unneeded memory limitting malloc() wrapper. 3898207753Smm 3899207753Smmcommit 69472ee5f055a2bb6f28106f0923e1461fd1d080 3900207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3901207753SmmDate: Sun Nov 23 15:09:03 2008 +0200 3902207753Smm 3903207753Smm VLI encoder and decoder cleanups. Made encoder return 3904207753Smm LZMA_PROG_ERROR in single-call mode if there's no output 3905207753Smm space. 3906207753Smm 3907207753Smmcommit 4249c8c15a08f55b51b7012e6aaafce3aa9eb650 3908207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3909207753SmmDate: Sat Nov 22 17:44:33 2008 +0200 3910207753Smm 3911207753Smm Typo fix 3912207753Smm 3913207753Smmcommit 6d1d6f4598d121253dbe1084c6866b66e95c361b 3914207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3915207753SmmDate: Thu Nov 20 22:59:10 2008 +0200 3916207753Smm 3917207753Smm Support NetBSD's errno for O_NOFOLLOW. 3918207753Smm 3919207753Smmcommit f901a290eef67b8ea4720ccdf5f46edf775ed9d7 3920207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3921207753SmmDate: Thu Nov 20 18:05:52 2008 +0200 3922207753Smm 3923207753Smm Build xzdec and lzmadec from xzdec.c. xzdec supports only .xz 3924207753Smm files and lzmadec only .lzma files. 3925207753Smm 3926207753Smmcommit 86a0ed8f01c8ed44721223f885e679c71b7bb94c 3927207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3928207753SmmDate: Thu Nov 20 11:01:29 2008 +0200 3929207753Smm 3930207753Smm Minor cleanups to xzdec. 3931207753Smm 3932207753Smmcommit 54f716ba8905d09752dcd1519455a40bd21d5317 3933207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3934207753SmmDate: Wed Nov 19 23:55:22 2008 +0200 3935207753Smm 3936207753Smm Added missing check for uint16_t. 3937207753Smm 3938207753Smmcommit 1880a3927b23f265f63b2adb86fbdb81ea09eb06 3939207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3940207753SmmDate: Wed Nov 19 23:52:24 2008 +0200 3941207753Smm 3942207753Smm Renamed lzma to xz and lzmadec to xzdec. We create symlinks 3943207753Smm lzma, unlzma, and lzcat in "make install" for backwards 3944207753Smm compatibility with LZMA Utils 4.32.x; I'm not sure if this 3945207753Smm should be the default though. 3946207753Smm 3947207753Smmcommit e114502b2bc371e4a45449832cb69be036360722 3948207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3949207753SmmDate: Wed Nov 19 20:46:52 2008 +0200 3950207753Smm 3951207753Smm Oh well, big messy commit again. Some highlights: 3952207753Smm - Updated to the latest, probably final file format version. 3953207753Smm - Command line tool reworked to not use threads anymore. 3954207753Smm Threading will probably go into liblzma anyway. 3955207753Smm - Memory usage limit is now about 30 % for uncompression 3956207753Smm and about 90 % for compression. 3957207753Smm - Progress indicator with --verbose 3958207753Smm - Simplified --help and full --long-help 3959207753Smm - Upgraded to the last LGPLv2.1+ getopt_long from gnulib. 3960207753Smm - Some bug fixes 3961207753Smm 3962207753Smmcommit 3c3905b53462ae235c9438d86a4dc51086410932 3963207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3964207753SmmDate: Thu Oct 9 11:12:29 2008 +0300 3965207753Smm 3966207753Smm Fixed the test that should have been fixed as part 3967207753Smm of 1e8e4fd1f3e50129b4541406ad765d2aa1233943. 3968207753Smm 3969207753Smmcommit 0f295bf7a3ece01f667caae318cc3e3424085886 3970207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3971207753SmmDate: Tue Oct 7 16:42:18 2008 +0300 3972207753Smm 3973207753Smm Fixed some help messages. 3974207753Smm 3975207753Smmcommit 1e8e4fd1f3e50129b4541406ad765d2aa1233943 3976207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3977207753SmmDate: Tue Oct 7 09:40:31 2008 +0300 3978207753Smm 3979207753Smm Made the preset numbering more logical in liblzma API. 3980207753Smm 3981207753Smmcommit 5e4df4c3c09c82bbbb1a916784e3dc717ca4ff81 3982207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3983207753SmmDate: Fri Oct 3 19:36:09 2008 +0300 3984207753Smm 3985207753Smm Removed fi from po/LINGUAS. 3986207753Smm 3987207753Smmcommit fcfb86c7770328cfffa2e83b176af9a1ba2d9128 3988207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3989207753SmmDate: Fri Oct 3 07:06:48 2008 +0300 3990207753Smm 3991207753Smm Fixed suffix handling with --format=raw. 3992207753Smm 3993207753Smmcommit bd137524f2f50e30ba054f42f1f6536cd3cee920 3994207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 3995207753SmmDate: Thu Oct 2 22:51:46 2008 +0300 3996207753Smm 3997207753Smm Initial changes to change the suffix of the new format to .xz. 3998207753Smm This also fixes a bug related to --suffix option. Some issues 3999207753Smm with suffixes with --format=raw were not fixed. 4000207753Smm 4001207753Smmcommit 4c321a41c482821aa3c4d64cdf886a6ed904d844 4002207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4003207753SmmDate: Tue Sep 30 17:43:55 2008 +0300 4004207753Smm 4005207753Smm Renamed the test files from .lzma suffix to .xz suffix. 4006207753Smm 4007207753Smmcommit 8e60c889a2816a63013a35c99ce26bf28f5b78eb 4008207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4009207753SmmDate: Tue Sep 30 13:57:44 2008 +0300 4010207753Smm 4011207753Smm Fixed Stream decoder to actually use the first_stream variable. 4012207753Smm 4013207753Smmcommit 3bdbc12c054d1961133ee19802af7dd3c3494543 4014207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4015207753SmmDate: Tue Sep 30 13:56:57 2008 +0300 4016207753Smm 4017207753Smm Added one more test file. 4018207753Smm 4019207753Smmcommit a6639022fdc536e5659b070a465221b4cf7c51fa 4020207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4021207753SmmDate: Tue Sep 30 13:34:07 2008 +0300 4022207753Smm 4023207753Smm Fixed uninitialized variable in Stream decoder. 4024207753Smm 4025207753Smmcommit ed3709000a3f17ecefab29b2235d7e2221b00003 4026207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4027207753SmmDate: Tue Sep 30 13:27:28 2008 +0300 4028207753Smm 4029207753Smm Added two test files. 4030207753Smm 4031207753Smmcommit ea560b0ea80525752bdcd0074d24f8dc170bbe29 4032207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4033207753SmmDate: Sat Sep 27 23:49:24 2008 +0300 4034207753Smm 4035207753Smm Fix conflicting Subblock helper filter's ID. 4036207753Smm 4037207753Smmcommit ad97483b6e55142fd8d5c041db057017a891cd95 4038207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4039207753SmmDate: Sat Sep 27 23:37:13 2008 +0300 4040207753Smm 4041207753Smm Changed magic bytes to match the updated spec. Filename 4042207753Smm suffix wasn't changed yet. 4043207753Smm 4044207753Smmcommit 7a57069167e9e63394e2b095ee3a63253fcb51c7 4045207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4046207753SmmDate: Sat Sep 27 23:16:09 2008 +0300 4047207753Smm 4048207753Smm Remove po/fi.po since I'm not keeping it updated for now. 4049207753Smm 4050207753Smmcommit 018ae09df8f2fee5a7374f307df4cb42fad0b81e 4051207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4052207753SmmDate: Sat Sep 27 23:13:54 2008 +0300 4053207753Smm 4054207753Smm Fix also test_compress.sh. 4055207753Smm 4056207753Smmcommit 3a62a5fb85d2eebd8666e64ed5d364d095062858 4057207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4058207753SmmDate: Sat Sep 27 23:01:15 2008 +0300 4059207753Smm 4060207753Smm Fixed compilation of test_filter_flags.c, which was broken by 4061207753Smm 1dcecfb09b55157b8653d747963069c8bed74f04. 4062207753Smm 4063207753Smmcommit c6ca26eef7cd07eba449035514e2b8f9ac3111c0 4064207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4065207753SmmDate: Sat Sep 27 19:11:02 2008 +0300 4066207753Smm 4067207753Smm Updated file format specification. It changes the suffix 4068207753Smm of the new format to .xz and removes the recently added 4069207753Smm LZMA filter. 4070207753Smm 4071207753Smmcommit 1dcecfb09b55157b8653d747963069c8bed74f04 4072207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4073207753SmmDate: Sat Sep 27 19:09:21 2008 +0300 4074207753Smm 4075207753Smm Some API changes, bug fixes, cleanups etc. 4076207753Smm 4077207753Smmcommit 5cc5064cae603b649c64c40125c7dd365de54c9d 4078207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4079207753SmmDate: Sat Sep 27 11:28:49 2008 +0300 4080207753Smm 4081207753Smm Added 7z2lzma.bash. 4082207753Smm 4083207753Smmcommit f147666a5cd15542d4e427da58629f4a71cc38e1 4084207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4085207753SmmDate: Wed Sep 17 22:11:39 2008 +0300 4086207753Smm 4087207753Smm Miscellaneous LZ and LZMA encoder cleanups 4088207753Smm 4089207753Smmcommit 13d68b069849e19c33822cd8996cd6447890abb1 4090207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4091207753SmmDate: Sat Sep 13 13:54:00 2008 +0300 4092207753Smm 4093207753Smm LZ decoder cleanup 4094207753Smm 4095207753Smmcommit 13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 4096207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4097207753SmmDate: Sat Sep 13 12:10:43 2008 +0300 4098207753Smm 4099207753Smm Renamed constants: 4100207753Smm - LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX 4101207753Smm - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN 4102207753Smm - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR 4103207753Smm 4104207753Smmcommit 320601b2c7b08fc7da9da18d5bf7c3c1a189b080 4105207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4106207753SmmDate: Fri Sep 12 22:41:40 2008 +0300 4107207753Smm 4108207753Smm Improved the Stream Flags handling API. 4109207753Smm 4110207753Smmcommit ec490da5228263b25bf786bb23d1008468f55b30 4111207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4112207753SmmDate: Thu Sep 11 23:10:44 2008 +0300 4113207753Smm 4114207753Smm Simplified debug/known_sizes.c to match the relaxed 4115207753Smm requirements of Block encoder. 4116207753Smm 4117207753Smmcommit 16e8b98f2659347edfa74afdbbb9e73311153cb9 4118207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4119207753SmmDate: Thu Sep 11 23:09:24 2008 +0300 4120207753Smm 4121207753Smm Remove a check from Block encoder that should have already 4122207753Smm been removed in 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e. 4123207753Smm 4124207753Smmcommit 5a710c3805bdf6d7e3c92e954e4e4565b27bcb13 4125207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4126207753SmmDate: Thu Sep 11 20:02:38 2008 +0300 4127207753Smm 4128207753Smm Remove bogus #includes. 4129207753Smm 4130207753Smmcommit 01892b2ca5f69bed0ea746e04b604030d57806bb 4131207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4132207753SmmDate: Thu Sep 11 10:49:14 2008 +0300 4133207753Smm 4134207753Smm Updated THANKS. 4135207753Smm 4136207753Smmcommit 962f2231d49409fe6852e44ffe8c5dbabb04bc7d 4137207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4138207753SmmDate: Thu Sep 11 10:48:12 2008 +0300 4139207753Smm 4140207753Smm Fix a compiler error on big endian systems that don't 4141207753Smm support unaligned memory access. 4142207753Smm 4143207753Smmcommit fa3ab0df8ae7a8a1ad55b52266dc0fd387458671 4144207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4145207753SmmDate: Thu Sep 11 10:46:14 2008 +0300 4146207753Smm 4147207753Smm Silence a compiler warning. 4148207753Smm 4149207753Smmcommit 9373e81e18822db4972819442ea4c2cb9955470b 4150207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4151207753SmmDate: Wed Sep 10 19:16:32 2008 +0300 4152207753Smm 4153207753Smm Bumped version to 4.999.6alpha. 4154207753Smm 4155207753Smmcommit cb072b7c8442ba68bb0c62c0abbbe939794887a3 4156207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4157207753SmmDate: Wed Sep 10 17:02:00 2008 +0300 4158207753Smm 4159207753Smm Check for LZMA_FILTER_RESERVED_START in filter_flags_encoder.c. 4160207753Smm Use LZMA_PROG_ERROR instead of LZMA_HEADER_ERROR if the Filter ID 4161207753Smm is in the reserved range. This allows Block Header encoder to 4162207753Smm detect unallowed Filter IDs, which is good for Stream encoder. 4163207753Smm 4164207753Smmcommit 123ab0acec435c9e9866a99e30482116cfbd9ba5 4165207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4166207753SmmDate: Wed Sep 10 16:44:32 2008 +0300 4167207753Smm 4168207753Smm Filter handling cleanups 4169207753Smm 4170207753Smmcommit 9cfcd0c4f2f865d8fbbb46ea28344a9be0dd8ad1 4171207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4172207753SmmDate: Wed Sep 10 00:33:00 2008 +0300 4173207753Smm 4174207753Smm Comments 4175207753Smm 4176207753Smmcommit 2ba01bfa755e47ff6af84a978e3c8d63d7d2775e 4177207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4178207753SmmDate: Wed Sep 10 00:27:02 2008 +0300 4179207753Smm 4180207753Smm Cleaned up Block encoder and moved the no longer shared 4181207753Smm code from block_private.h to block_decoder.c. Now the Block 4182207753Smm encoder doesn't need compressed_size and uncompressed_size 4183207753Smm from lzma_block structure to be initialized. 4184207753Smm 4185207753Smmcommit 07efcb5a6bc5d7018798ebd728586f84183e7d64 4186207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4187207753SmmDate: Sun Sep 7 10:23:13 2008 +0300 4188207753Smm 4189207753Smm Changed Filter ID of LZMA to 0x20. 4190207753Smm 4191207753Smmcommit 32fe5fa541e82c08e054086279079ae5016bd8d8 4192207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4193207753SmmDate: Sat Sep 6 23:42:50 2008 +0300 4194207753Smm 4195207753Smm Comments 4196207753Smm 4197207753Smmcommit 0a31ed9d5e3cde4feb094b66f3a8b2c074605d84 4198207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4199207753SmmDate: Sat Sep 6 15:14:30 2008 +0300 4200207753Smm 4201207753Smm Some API cleanups 4202207753Smm 4203207753Smmcommit da98df54400998be2a6c3876f9655a3c51b93c10 4204207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4205207753SmmDate: Thu Sep 4 11:53:06 2008 +0300 4206207753Smm 4207207753Smm Added support for raw encoding and decoding to the command 4208207753Smm line tool, and made various cleanups. --lzma was renamed to 4209207753Smm --lzma1 to prevent people from accidentally using LZMA when 4210207753Smm they want LZMA2. 4211207753Smm 4212207753Smmcommit 2496aee8a7741a8a0d42987db41ff2cf1a4bdabd 4213207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4214207753SmmDate: Thu Sep 4 10:39:15 2008 +0300 4215207753Smm 4216207753Smm Don't allow LZMA_SYNC_FLUSH with decoders anymore. There's 4217207753Smm simply nothing that would use it. Allow LZMA_FINISH to the 4218207753Smm decoders, which will usually ignore it (auto decoder and 4219207753Smm Stream decoder being exceptions). 4220207753Smm 4221207753Smmcommit bea301c26d5d52675e11e0236faec0492af98f60 4222207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4223207753SmmDate: Wed Sep 3 17:06:25 2008 +0300 4224207753Smm 4225207753Smm Minor updates to the file format specification. 4226207753Smm 4227207753Smmcommit 9c75b089b4a9e0edcf4cf7970a4383768707d6c8 4228207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4229207753SmmDate: Tue Sep 2 19:33:32 2008 +0300 4230207753Smm 4231207753Smm Command line tool fixes 4232207753Smm 4233207753Smmcommit bab0590504b5aeff460ab4ca8c964dd7c1bad9e4 4234207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4235207753SmmDate: Tue Sep 2 19:31:42 2008 +0300 4236207753Smm 4237207753Smm Auto decoder cleanup 4238207753Smm 4239207753Smmcommit 689602336d126a46b60d791a67decab65e1e81f5 4240207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4241207753SmmDate: Tue Sep 2 19:12:12 2008 +0300 4242207753Smm 4243207753Smm Updated auto decoder to handle LZMA_CONCATENATED when decoding 4244207753Smm LZMA_Alone files. Decoding of concatenated LZMA_Alone files is 4245207753Smm intentionally not supported, so it is better to put this in 4246207753Smm auto decoder than LZMA_Alone decoder. 4247207753Smm 4248207753Smmcommit 80c4158f19904026433eb6f5d5ca98a0ecd4f66c 4249207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4250207753SmmDate: Tue Sep 2 14:56:52 2008 +0300 4251207753Smm 4252207753Smm Stream decoder cleanups 4253207753Smm 4254207753Smmcommit fc681657450ce57be1fe08f7a15d31dcc705e514 4255207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4256207753SmmDate: Tue Sep 2 11:45:39 2008 +0300 4257207753Smm 4258207753Smm Some fixes to LZ encoder. 4259207753Smm 4260207753Smmcommit ede675f9ac1ca82a7d7c290324adba672118bc8d 4261207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4262207753SmmDate: Sun Aug 31 11:47:01 2008 +0300 4263207753Smm 4264207753Smm Fix wrong pointer calculation in LZMA encoder. 4265207753Smm 4266207753Smmcommit 3b34851de1eaf358cf9268922fa0eeed8278d680 4267207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4268207753SmmDate: Thu Aug 28 22:53:15 2008 +0300 4269207753Smm 4270207753Smm Sort of garbage collection commit. :-| Many things are still 4271207753Smm broken. API has changed a lot and it will still change a 4272207753Smm little more here and there. The command line tool doesn't 4273207753Smm have all the required changes to reflect the API changes, so 4274207753Smm it's easy to get "internal error" or trigger assertions. 4275207753Smm 4276207753Smmcommit 57b9a145a527f0716822615e5ed536d33aebd3fc 4277207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4278207753SmmDate: Fri Jun 20 17:16:32 2008 +0300 4279207753Smm 4280207753Smm Fix test_filter_flags to match the new restriction of lc+lp. 4281207753Smm 4282207753Smmcommit eaafc4367c77ec1d910e16d11b4da293969d97a3 4283207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4284207753SmmDate: Fri Jun 20 16:19:54 2008 +0300 4285207753Smm 4286207753Smm Remove some redundant code from LZMA encoder. 4287207753Smm 4288207753Smmcommit 0809c46534fa5664fe35d9e98d95e87312ed130e 4289207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4290207753SmmDate: Thu Jun 19 16:35:08 2008 +0300 4291207753Smm 4292207753Smm Add limit of lc + lp <= 4. Now we can allocate the 4293207753Smm literal coder as part of the main LZMA encoder or 4294207753Smm decoder structure. 4295207753Smm 4296207753Smm Make the LZMA decoder to rely on the current internal API 4297207753Smm to free the allocated memory in case an error occurs. 4298207753Smm 4299207753Smmcommit d25ab1b96178f06a0e724f58e3cd68300b2b1275 4300207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4301207753SmmDate: Wed Jun 18 21:45:19 2008 +0300 4302207753Smm 4303207753Smm Comments 4304207753Smm 4305207753Smmcommit 6368a2fa5901c75864be5171dd57a50af7adbb41 4306207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4307207753SmmDate: Wed Jun 18 19:19:02 2008 +0300 4308207753Smm 4309207753Smm Delete old code that was supposed to be already deleted 4310207753Smm from test_block_header.c. 4311207753Smm 4312207753Smmcommit 7d17818cec8597f847b0a2537fde991bbc3d9e96 4313207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4314207753SmmDate: Wed Jun 18 18:02:10 2008 +0300 4315207753Smm 4316207753Smm Update the code to mostly match the new simpler file format 4317207753Smm specification. Simplify things by removing most of the 4318207753Smm support for known uncompressed size in most places. 4319207753Smm There are some miscellaneous changes here and there too. 4320207753Smm 4321207753Smm The API of liblzma has got many changes and still some 4322207753Smm more will be done soon. While most of the code has been 4323207753Smm updated, some things are not fixed (the command line tool 4324207753Smm will choke with invalid filter chain, if nothing else). 4325207753Smm 4326207753Smm Subblock filter is somewhat broken for now. It will be 4327207753Smm updated once the encoded format of the Subblock filter 4328207753Smm has been decided. 4329207753Smm 4330207753Smmcommit bf6348d1a3ff09fdc06940468f318f75ffa6af11 4331207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4332207753SmmDate: Tue Jun 17 15:03:46 2008 +0300 4333207753Smm 4334207753Smm Update the file format specification draft. The new one is 4335207753Smm a lot simpler than the previous versions, but it also means 4336207753Smm that the existing code will change a lot. 4337207753Smm 4338207753Smmcommit 803194ddd26f01ff60ba4e9924c6087a56b29827 4339207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4340207753SmmDate: Wed Jun 11 21:42:47 2008 +0300 4341207753Smm 4342207753Smm Fix uninitialized variable in LZMA encoder. This was 4343207753Smm introduced in 369f72fd656f537a9a8e06f13e6d0d4c242be22f. 4344207753Smm 4345207753Smmcommit 0ea98e52ba87453497b1355c51f13bad55c8924a 4346207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4347207753SmmDate: Wed Jun 11 15:08:44 2008 +0300 4348207753Smm 4349207753Smm Improve command line integer parsing a little in lzma and 4350207753Smm lzmadec to make them accept also KiB in addition Ki etc. 4351207753Smm Fix also memory usage information in lzmadec --help. 4352207753Smm 4353207753Smmcommit 436fa5fae96d4e35759aed33066060f09ee8c6ef 4354207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4355207753SmmDate: Tue Jun 10 20:36:12 2008 +0300 4356207753Smm 4357207753Smm s/decompressed/compressed/ in the command line tool's 4358207753Smm error message. 4359207753Smm 4360207753Smmcommit 369f72fd656f537a9a8e06f13e6d0d4c242be22f 4361207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4362207753SmmDate: Sun Jun 1 12:48:17 2008 +0300 4363207753Smm 4364207753Smm Fix a buffer overflow in the LZMA encoder. It was due to my 4365207753Smm misunderstanding of the code. There's no tiny fix for this 4366207753Smm problem, so I also cleaned up the code in general. 4367207753Smm 4368207753Smm This reduces the speed of the encoder 2-5 % in the fastest 4369207753Smm compression mode ("lzma -1"). High compression modes should 4370207753Smm have no noticeable performance difference. 4371207753Smm 4372207753Smm This commit breaks things (especially LZMA_SYNC_FLUSH) but I 4373207753Smm will fix them once the new format and LZMA2 has been roughly 4374207753Smm implemented. Plain LZMA won't support LZMA_SYNC_FLUSH at all 4375207753Smm and won't be supported in the new .lzma format. This may 4376207753Smm change still but this is what it looks like now. 4377207753Smm 4378207753Smm Support for known uncompressed size (that is, LZMA or LZMA2 4379207753Smm without EOPM) is likely to go away. This means there will 4380207753Smm be API changes. 4381207753Smm 4382207753Smmcommit e55e0e873ce2511325749d415ae547d62ab5f00d 4383207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4384207753SmmDate: Fri May 30 11:53:41 2008 +0300 4385207753Smm 4386207753Smm Typo fixes from meyering. 4387207753Smm 4388207753Smmcommit ed6664146fcbe9cc4a3b23b31632182ed812ea93 4389207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4390207753SmmDate: Sun May 11 14:24:42 2008 +0300 4391207753Smm 4392207753Smm Remove support for pre-C89 libc versions that lack memcpy, 4393207753Smm memmove, and memset. 4394207753Smm 4395207753Smmcommit b09464bf9ae694afc2d1dc26188ac4e2e8af0a63 4396207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4397207753SmmDate: Sun May 11 14:17:21 2008 +0300 4398207753Smm 4399207753Smm Improved C99 compiler detection in configure.ac. It will 4400207753Smm pass -std=gnu99 instead of -std=c99 to GCC now, but -pedantic 4401207753Smm should still give warnings about GNU extensions like before 4402207753Smm except with some special keywords like asm(). 4403207753Smm 4404207753Smmcommit 11de5d5267f7a0a7f0a4d34eec147e65eaf9f9cf 4405207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4406207753SmmDate: Tue May 6 15:15:07 2008 +0300 4407207753Smm 4408207753Smm Bunch of grammar fixes from meyering. 4409207753Smm 4410207753Smmcommit dc192b6343ae36276c85fcf7ef6006147816eadc 4411207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4412207753SmmDate: Tue May 6 13:41:05 2008 +0300 4413207753Smm 4414207753Smm Typo fix 4415207753Smm 4416207753Smmcommit 944b62b93239b27b338d117f2668c0e95849659b 4417207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4418207753SmmDate: Sun May 4 22:29:27 2008 +0300 4419207753Smm 4420207753Smm Don't print an error message on broken pipe unless --verbose 4421207753Smm is used. 4422207753Smm 4423207753Smmcommit 8e074349e47ea6832b8fdf9244e581d453733433 4424207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4425207753SmmDate: Wed Apr 30 22:16:17 2008 +0300 4426207753Smm 4427207753Smm Fix a crash with --format=alone if other filters than LZMA 4428207753Smm are specified on the command line. 4429207753Smm 4430207753Smmcommit 2f361ac19b7fd3abcd362de4d470e6a9eb495b73 4431207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4432207753SmmDate: Mon Apr 28 17:08:27 2008 +0300 4433207753Smm 4434207753Smm Updated THANKS. 4435207753Smm 4436207753Smmcommit 3be21fb12f4cec2cf07799e8960382f4cb375369 4437207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4438207753SmmDate: Mon Apr 28 17:06:34 2008 +0300 4439207753Smm 4440207753Smm Fixed wrong spelling "limitter" to "limiter". This affects 4441207753Smm liblzma's API. 4442207753Smm 4443207753Smmcommit beeb81060821dfec4e7898e0d44b7900dcb2215e 4444207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4445207753SmmDate: Fri Apr 25 15:39:50 2008 +0300 4446207753Smm 4447207753Smm Prevent LZ encoder from hanging with known uncompressed 4448207753Smm size. The "fix" breaks LZMA_SYNC_FLUSH at end of stream 4449207753Smm with known uncompressed size, but since it currently seems 4450207753Smm likely that support for encoding with known uncompressed 4451207753Smm size will go away anyway, I'm not fixing this problem now. 4452207753Smm 4453207753Smmcommit c324325f9f13cdeb92153c5d00962341ba070ca2 4454207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4455207753SmmDate: Fri Apr 25 13:58:56 2008 +0300 4456207753Smm 4457207753Smm Removed src/liblzma/common/sysdefs.h symlink, which was 4458207753Smm annoying, because "make dist" put two copies of sysdefs.h 4459207753Smm into the tarball instead of the symlink. 4460207753Smm 4461207753Smmcommit d3ba30243c75c13d094de1793f9c58acdbacc692 4462207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4463207753SmmDate: Fri Apr 25 13:41:29 2008 +0300 4464207753Smm 4465207753Smm Added memusage.c to debug directory. 4466207753Smm 4467207753Smmcommit 8f804c29aa8471ccd6438ddca254092b8869ca52 4468207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4469207753SmmDate: Fri Apr 25 13:32:35 2008 +0300 4470207753Smm 4471207753Smm Bumped version number to 4.999.3alpha. It will become 5.0.0 4472207753Smm once we have a stable release (won't be very soon). The 4473207753Smm version number is no longer related to version of LZMA SDK. 4474207753Smm 4475207753Smm Made some small Automake-related changes to toplevel 4476207753Smm Makefile.am and configure.ac. 4477207753Smm 4478207753Smmcommit c99037ea10f121cbacf60c37a36c29768ae53447 4479207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4480207753SmmDate: Thu Apr 24 20:25:39 2008 +0300 4481207753Smm 4482207753Smm Fix a memory leak by calling free(extra->data) in 4483207753Smm lzma_extra_free(). 4484207753Smm 4485207753Smmcommit 22ba3b0b5043fa481903482ce85015fe775939e5 4486207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4487207753SmmDate: Thu Apr 24 20:23:05 2008 +0300 4488207753Smm 4489207753Smm Make unlzma and lzcat symlinks. 4490207753Smm 4491207753Smmcommit 17c36422d4cbc2c70d5c83ec389406f92cd9e85e 4492207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4493207753SmmDate: Thu Apr 24 20:20:27 2008 +0300 4494207753Smm 4495207753Smm Fixed a bug in command line option parsing. 4496207753Smm 4497207753Smmcommit 283f939974c32c47f05d495e8dea455ec646ed64 4498207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4499207753SmmDate: Thu Apr 24 20:19:20 2008 +0300 4500207753Smm 4501207753Smm Added two assert()s. 4502207753Smm 4503207753Smmcommit eb348a60b6e19a7c093f892434f23c4756973ffd 4504207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4505207753SmmDate: Thu Apr 24 19:22:53 2008 +0300 4506207753Smm 4507207753Smm Switch to uint16_t as the type of range coder probabilities. 4508207753Smm 4509207753Smmcommit 6c5306e312bcfd254cf654f88c04e34ba786df3d 4510207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4511207753SmmDate: Thu Apr 24 18:39:57 2008 +0300 4512207753Smm 4513207753Smm Fix wrong return type (uint32_t -> bool). 4514207753Smm 4515207753Smmcommit 712cfe3ebfd24df24d8896b1315c53c3bc4369c8 4516207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4517207753SmmDate: Thu Apr 24 18:38:00 2008 +0300 4518207753Smm 4519207753Smm Fix data corruption in LZ encoder with LZMA_SYNC_FLUSH. 4520207753Smm 4521207753Smmcommit bc04486e368d20b3027cde625267762aae063965 4522207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4523207753SmmDate: Thu Apr 24 17:33:01 2008 +0300 4524207753Smm 4525207753Smm Fix fastpos problem in Makefile.am when built with --enable-small. 4526207753Smm 4527207753Smmcommit 7ab493924e0ed590a5121a15ee54038d238880d3 4528207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4529207753SmmDate: Thu Apr 24 17:30:51 2008 +0300 4530207753Smm 4531207753Smm Use 64-bit integer as range encoder's cache size. This fixes a 4532207753Smm theoretical data corruption, which should be very hard to trigger 4533207753Smm even intentionally. 4534207753Smm 4535207753Smmcommit 641998c3e1ecc8b598fe0eb051fab8b9535c291b 4536207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4537207753SmmDate: Mon Mar 24 16:38:40 2008 +0200 4538207753Smm 4539207753Smm Replaced the range decoder optimization that used arithmetic 4540207753Smm right shift with as fast version that doesn't need 4541207753Smm arithmetic right shift. Removed the related check from 4542207753Smm configure.ac. 4543207753Smm 4544207753Smmcommit ad999efd279d95f1e7ac555b14170e8e9020488c 4545207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4546207753SmmDate: Sat Mar 22 14:39:34 2008 +0200 4547207753Smm 4548207753Smm Take advantage of arithmetic right shift in range decoder. 4549207753Smm 4550207753Smmcommit 03e0e8a0d7228b6ff1f0af39e2c040a4e425973d 4551207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4552207753SmmDate: Sat Mar 22 14:18:29 2008 +0200 4553207753Smm 4554207753Smm Added autoconf check to detect if we can use arithmetic 4555207753Smm right shift for optimizations. 4556207753Smm 4557207753Smmcommit 7521bbdc83acab834594a22bec50c8e1bd836298 4558207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4559207753SmmDate: Sat Mar 22 01:26:36 2008 +0200 4560207753Smm 4561207753Smm Update a comment to use the variable name rep_len_decoder. 4562207753Smm 4563207753Smm (And BTW, the previous commit actually did change the 4564207753Smm program logic slightly.) 4565207753Smm 4566207753Smmcommit 63b74d000eedaebb8485f623e56864ff5ab71064 4567207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4568207753SmmDate: Sat Mar 22 00:57:33 2008 +0200 4569207753Smm 4570207753Smm Demystified the "state" variable in LZMA code. Use the 4571207753Smm word literal instead of char for better consistency. 4572207753Smm There are still some names with _char instead of _literal 4573207753Smm in lzma_optimum, these may be changed later. 4574207753Smm 4575207753Smm Renamed length coder variables. 4576207753Smm 4577207753Smm This commit doesn't change the program logic. 4578207753Smm 4579207753Smmcommit e6eb0a26757e851cef62b9440319a8e73b015cb9 4580207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4581207753SmmDate: Fri Mar 14 23:16:11 2008 +0200 4582207753Smm 4583207753Smm Fix data corruption in LZMA encoder. Note that this bug was 4584207753Smm specific to liblzma and was *not* present in LZMA SDK. 4585207753Smm 4586207753Smmcommit 7d516f5129e4373a6d57249d7f608c634c66bf12 4587207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4588207753SmmDate: Fri Mar 14 21:32:37 2008 +0200 4589207753Smm 4590207753Smm Fix a comment API header. 4591207753Smm 4592207753Smmcommit 748d6e4274921a350bd0a317380309717441ef9c 4593207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4594207753SmmDate: Wed Mar 12 23:14:50 2008 +0200 4595207753Smm 4596207753Smm Make lzma_stream.next_in const. Let's see if anyone complains. 4597207753Smm 4598207753Smmcommit bfde3b24a5ae25ce53c854762b6148952386b025 4599207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4600207753SmmDate: Tue Mar 11 15:35:34 2008 +0200 4601207753Smm 4602207753Smm Apply a minor speed optimization to LZMA decoder. 4603207753Smm 4604207753Smmcommit f310c50286d9e4e9c6170bb65348c9bb430a65b4 4605207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4606207753SmmDate: Tue Mar 11 15:17:16 2008 +0200 4607207753Smm 4608207753Smm Initialize the last byte of the dictionary to zero so that 4609207753Smm lz_get_byte(lz, 0) returns zero. This was broken by 4610207753Smm 1a3b21859818e4d8e89a1da99699233c1bfd197d. 4611207753Smm 4612207753Smmcommit 5ead36cf7f823093672a4e43c3180b38c9abbaff 4613207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4614207753SmmDate: Mon Mar 10 15:57:55 2008 +0200 4615207753Smm 4616207753Smm Really fix the price count initialization. 4617207753Smm 4618207753Smmcommit d4d7feb83d1a1ded8f662a82e21e053841ca726c 4619207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4620207753SmmDate: Mon Mar 10 13:47:17 2008 +0200 4621207753Smm 4622207753Smm Updated THANKS. 4623207753Smm 4624207753Smmcommit 0541c5ea63ef3c0ff85eeddb0a420e56b0c65258 4625207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4626207753SmmDate: Mon Mar 10 13:46:48 2008 +0200 4627207753Smm 4628207753Smm Initialize align_price_count and match_price_count in 4629207753Smm lzma_encoder_init.c. While we don't call 4630207753Smm fill_distances_prices() and fill_align_prices() in 4631207753Smm lzma_lzma_encoder_init(), we still need to initialize 4632207753Smm these two variables so that the fill functions get 4633207753Smm called in lzma_encoder_getoptimum.c in the beginning 4634207753Smm of a stream. 4635207753Smm 4636207753Smmcommit 596fa1fac72823e4ef5bc26bb53f9090445bf748 4637207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4638207753SmmDate: Mon Mar 10 13:44:29 2008 +0200 4639207753Smm 4640207753Smm Always initialize lz->temp_size in lz_decoder.c. temp_size did 4641207753Smm get initialized as a side-effect after allocating a new decoder, 4642207753Smm but not when the decoder was reused. 4643207753Smm 4644207753Smmcommit 45e43e169527e7a98a8c8a821d37bf25822b764d 4645207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4646207753SmmDate: Mon Mar 10 13:41:25 2008 +0200 4647207753Smm 4648207753Smm Don't fill allocated memory with 0xFD when debugging is 4649207753Smm enabled. It hides errors from Valgrind. 4650207753Smm 4651207753Smmcommit c0e19e0662205f81a86da8903cdc325d50635870 4652207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4653207753SmmDate: Thu Feb 28 10:24:31 2008 +0200 4654207753Smm 4655207753Smm Remove two redundant validity checks from the LZMA decoder. 4656207753Smm These are already checked elsewhere, so omitting these 4657207753Smm gives (very) tiny speed up. 4658207753Smm 4659207753Smmcommit de7485806284d1614095ae8cb2ebbb5d74c9ac45 4660207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4661207753SmmDate: Wed Feb 6 13:25:32 2008 +0200 4662207753Smm 4663207753Smm Tiny clean up to file-format.txt. 4664207753Smm 4665207753Smmcommit 1a3b21859818e4d8e89a1da99699233c1bfd197d 4666207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4667207753SmmDate: Sat Feb 2 14:51:06 2008 +0200 4668207753Smm 4669207753Smm Don't memzero() the history buffer when initializing LZ 4670207753Smm decoder. There's no danger of information leak here, so 4671207753Smm it isn't required. Doing memzero() takes a lot of time 4672207753Smm with large dictionaries, which could make it easier to 4673207753Smm construct DoS attack to consume too much CPU time. 4674207753Smm 4675207753Smmcommit 7e796e312bf644ea95aea0ff85480f47cfa30fc0 4676207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4677207753SmmDate: Fri Feb 1 08:39:26 2008 +0200 4678207753Smm 4679207753Smm Do uncompressed size validation in raw encoder. This way 4680207753Smm it gets done for not only raw encoder, but also Block 4681207753Smm and LZMA_Alone encoders. 4682207753Smm 4683207753Smmcommit 7dd48578a3853e0cfab9f1830bc30927173ec4bc 4684207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4685207753SmmDate: Fri Feb 1 08:32:05 2008 +0200 4686207753Smm 4687207753Smm Avoid unneeded function call in raw_common.c. 4688207753Smm 4689207753Smmcommit b596fac963c3ff96f615d4d9b427a213ec341211 4690207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4691207753SmmDate: Sat Jan 26 21:42:38 2008 +0200 4692207753Smm 4693207753Smm Updated THANKS. 4694207753Smm 4695207753Smmcommit e9f6e9c075ad93141a568d94f7d4eb0f2edbd6c2 4696207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4697207753SmmDate: Sat Jan 26 21:40:23 2008 +0200 4698207753Smm 4699207753Smm Added note.GNU-stack to x86 assembler files. It is needed 4700207753Smm when using non-executable stack. 4701207753Smm 4702207753Smmcommit 4c7ad179c78f97f68ad548cb40a9dfa6871655ae 4703207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4704207753SmmDate: Sat Jan 26 19:12:50 2008 +0200 4705207753Smm 4706207753Smm Added api/lzma/easy.h. I had forgot to add this to the 4707207753Smm git repo. Thanks to Stephan Kulow. 4708207753Smm 4709207753Smmcommit 288b232f54c3692cd36f471d4042f51daf3ea79f 4710207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4711207753SmmDate: Sat Jan 26 11:09:17 2008 +0200 4712207753Smm 4713207753Smm Added more test files. 4714207753Smm 4715207753Smmcommit c467b0defccf233d0c79234407bc38d7d09574d3 4716207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4717207753SmmDate: Sat Jan 26 10:47:55 2008 +0200 4718207753Smm 4719207753Smm Added more test files. 4720207753Smm 4721207753Smmcommit f9842f712732c482f2def9f24437851e57dd83f8 4722207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4723207753SmmDate: Sat Jan 26 00:25:34 2008 +0200 4724207753Smm 4725207753Smm Return LZMA_HEADER_ERROR if LZMA_SYNC_FLUSH is used with any 4726207753Smm of the so called simple filters. If there is demand, limited 4727207753Smm support for LZMA_SYNC_FLUSH may be added in future. 4728207753Smm 4729207753Smm After this commit, using LZMA_SYNC_FLUSH shouldn't cause 4730207753Smm undefined behavior in any situation. 4731207753Smm 4732207753Smmcommit e988ea1d1a286dd0f27af0657f9665d5cd8573aa 4733207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4734207753SmmDate: Fri Jan 25 23:50:35 2008 +0200 4735207753Smm 4736207753Smm Added more Multi-Block test files. Improved some 4737207753Smm descriptions in the test files' README. 4738207753Smm 4739207753Smmcommit 4441e004185cd4c61bda184010eca5924c9dec87 4740207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4741207753SmmDate: Fri Jan 25 23:12:36 2008 +0200 4742207753Smm 4743207753Smm Combine lzma_options_block validation needed by both Block 4744207753Smm encoder and decoder, and put the shared things to 4745207753Smm block_private.h. Improved the checks a little so that 4746207753Smm they may detect too big Compressed Size at initialization 4747207753Smm time if lzma_options_block.total_size or .total_limit is 4748207753Smm known. 4749207753Smm 4750207753Smm Allow encoding and decoding Blocks with combinations of 4751207753Smm fields that are not allowed by the file format specification. 4752207753Smm Doing this requires that the application passes such a 4753207753Smm combination in lzma_options_lzma; liblzma doesn't do that, 4754207753Smm but it's not impossible that someone could find them useful 4755207753Smm in some custom file format. 4756207753Smm 4757207753Smmcommit bf4200c818fcf9102e56328d39cde91bfa13cfb6 4758207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4759207753SmmDate: Fri Jan 25 19:21:22 2008 +0200 4760207753Smm 4761207753Smm Added test_memlimit.c. 4762207753Smm 4763207753Smmcommit 7b8fc7e6b501a32a36636dac79ecb57099269005 4764207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4765207753SmmDate: Fri Jan 25 19:20:28 2008 +0200 4766207753Smm 4767207753Smm Improved the memory limitter: 4768207753Smm - Added lzma_memlimit_max() and lzma_memlimit_reached() 4769207753Smm API functions. 4770207753Smm - Added simple estimation of malloc()'s memory usage 4771207753Smm overhead. 4772207753Smm - Fixed integer overflow detection in lzma_memlimit_alloc(). 4773207753Smm - Made some white space cleanups and added more comments. 4774207753Smm 4775207753Smm The description of lzma_memlimit_max() in memlimit.h is bad 4776207753Smm and should be improved. 4777207753Smm 4778207753Smmcommit e0c3d0043da2f670cfdb1abbb3223d5a594ad8db 4779207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4780207753SmmDate: Fri Jan 25 13:55:52 2008 +0200 4781207753Smm 4782207753Smm Use more parenthesis in succeed() macro in tests/tests.h. 4783207753Smm 4784207753Smmcommit 1fd76d488179580d37f31ee11948f4932aed31fd 4785207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4786207753SmmDate: Thu Jan 24 14:49:34 2008 +0200 4787207753Smm 4788207753Smm Added more Multi-Block Stream test files. 4789207753Smm 4790207753Smmcommit 6e27b1098a28f4ce09bfa6df68ad94182dfc2936 4791207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4792207753SmmDate: Thu Jan 24 00:46:05 2008 +0200 4793207753Smm 4794207753Smm Added bunch of test files containing Multi-Block Streams. 4795207753Smm 4796207753Smmcommit db9df0a9609c01a00a227329fb96e983971040f5 4797207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4798207753SmmDate: Wed Jan 23 23:43:00 2008 +0200 4799207753Smm 4800207753Smm Fix decoding of empty Metadata Blocks, that don't have 4801207753Smm even the Metadata Flags field. Earlier the code allowed 4802207753Smm such files; now they are prohibited as the file format 4803207753Smm specification requires. 4804207753Smm 4805207753Smmcommit 765f0b05f6e95ed9194fb90819cee189ebbac36b 4806207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4807207753SmmDate: Wed Jan 23 23:38:18 2008 +0200 4808207753Smm 4809207753Smm Fix a bug related to 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6. 4810207753Smm lzma_metadata.header_metadata_size was not properly set to 4811207753Smm zero if the Metadata had only the Metadata Flags field. 4812207753Smm 4813207753Smmcommit 3a7cc5c3dec7b078941f961b0393b86c418883b6 4814207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4815207753SmmDate: Wed Jan 23 23:35:49 2008 +0200 4816207753Smm 4817207753Smm Fix decoding of Extra Records that have empty Data. 4818207753Smm 4819207753Smmcommit e5fdec93e273855c1bcc2579b83cfb481a9a1492 4820207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4821207753SmmDate: Wed Jan 23 22:02:38 2008 +0200 4822207753Smm 4823207753Smm Add the trailing '\0' to lzma_extra.data as the API header 4824207753Smm already documents. 4825207753Smm 4826207753Smmcommit ed40dc5a2c28a8dfccab8c165b3780738eeef93e 4827207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4828207753SmmDate: Wed Jan 23 21:21:21 2008 +0200 4829207753Smm 4830207753Smm Added debug/full_flush.c. 4831207753Smm 4832207753Smmcommit ae0cd09a666a1682da8fc09487322227679e218d 4833207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4834207753SmmDate: Wed Jan 23 21:05:33 2008 +0200 4835207753Smm 4836207753Smm Return LZMA_STREAM_END instead of LZMA_OK if 4837207753Smm LZMA_SYNC_FLUSH or LZMA_FULL_FLUSH is used when 4838207753Smm there's no unfinished Block open. 4839207753Smm 4840207753Smmcommit 0e80ded13dfceb98f9494cbb5381a95eb44d03db 4841207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4842207753SmmDate: Wed Jan 23 20:05:01 2008 +0200 4843207753Smm 4844207753Smm Added bad-single-none-footer_filter_flags.lzma and 4845207753Smm bad-single-none-too_long_vli.lzma. 4846207753Smm 4847207753Smmcommit 8c8eb14055d8dd536b1b1c58fb284d34bb8ed1dd 4848207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4849207753SmmDate: Wed Jan 23 13:42:35 2008 +0200 4850207753Smm 4851207753Smm Fixed a typo. 4852207753Smm 4853207753Smmcommit 980f65a9a10160c4d105767871e3002b9aaba3e0 4854207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4855207753SmmDate: Wed Jan 23 13:40:45 2008 +0200 4856207753Smm 4857207753Smm Fix a memory leak in the Subblock encoder. 4858207753Smm 4859207753Smmcommit 99e12af4e2b866c011fe0106cd1e0bfdcc8fe9c6 4860207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4861207753SmmDate: Wed Jan 23 13:36:07 2008 +0200 4862207753Smm 4863207753Smm Fix Size of Header Metadata Block handling. Now 4864207753Smm lzma_metadata.header_metadata_size == LZMA_VLI_VALUE_UNKNOWN 4865207753Smm is not allowed at all. To indicate missing Header Metadata 4866207753Smm Block, header_metadata_size must be set to zero. This is 4867207753Smm what Metadata decoder does after this patch too. 4868207753Smm 4869207753Smm Note that other missing fields in lzma_metadata are still 4870207753Smm indicated with LZMA_VLI_VALUE_UNKNOWN. This isn't as 4871207753Smm illogical as it sounds at first, because missing Size of 4872207753Smm Header Metadata Block means that Header Metadata Block is 4873207753Smm not present in the Stream. With other Metadata fields, 4874207753Smm a missing field means only that the value is unknown. 4875207753Smm 4876207753Smmcommit 58b78ab20c1bcced45cf71ae6684868fc90b4b81 4877207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4878207753SmmDate: Wed Jan 23 13:15:55 2008 +0200 4879207753Smm 4880207753Smm Fix a memory leak in metadata_decoder.c. 4881207753Smm 4882207753Smmcommit 4d8cdbdab44400fd98f0f18a0f701e27cd1acdae 4883207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4884207753SmmDate: Wed Jan 23 13:13:58 2008 +0200 4885207753Smm 4886207753Smm Fix the fix 863028cb7ad6d8d0455fa69348f56b376d7b908f which 4887207753Smm just moved to problem. Now it's really fixed. 4888207753Smm 4889207753Smmcommit 67321de963ccf69410b3868b8e31534fe18a90de 4890207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4891207753SmmDate: Wed Jan 23 00:21:04 2008 +0200 4892207753Smm 4893207753Smm Take advantage of return_if_error() macro in 4894207753Smm lzma_info_metadata_set() in info.c. 4895207753Smm 4896207753Smmcommit 863028cb7ad6d8d0455fa69348f56b376d7b908f 4897207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4898207753SmmDate: Wed Jan 23 00:18:32 2008 +0200 4899207753Smm 4900207753Smm Fixed a dangling pointer that caused invalid free(). 4901207753Smm 4902207753Smmcommit cf49f42a6bd40143f54a6b10d6e605599e958c0b 4903207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4904207753SmmDate: Tue Jan 22 22:49:24 2008 +0200 4905207753Smm 4906207753Smm Added lzma_easy_* functions. These should make using 4907207753Smm liblzma as easy as using zlib, because the easy API 4908207753Smm don't require developers to know any fancy LZMA options. 4909207753Smm 4910207753Smm Note that Multi-Block Stream encoding is currently broken. 4911207753Smm The easy API should be OK, the bug(s) are elsewhere. 4912207753Smm 4913207753Smmcommit 1747b85a43abc1c3f152dbd349be2ef4089ecf6a 4914207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4915207753SmmDate: Tue Jan 22 21:16:22 2008 +0200 4916207753Smm 4917207753Smm Fix Multi-Block Stream encoder's EOPM usage. 4918207753Smm 4919207753Smmcommit 0ed6f1adcea540fb9593ca115d36de537f7f0dc6 4920207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4921207753SmmDate: Tue Jan 22 00:15:11 2008 +0200 4922207753Smm 4923207753Smm Made lzma_extra pointers const in lzma_options_stream. 4924207753Smm 4925207753Smmcommit 305afa38f64c75af8e81c4167e2d8fa8d85b53a4 4926207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4927207753SmmDate: Sun Jan 20 20:15:21 2008 +0200 4928207753Smm 4929207753Smm Updated debug/sync_flush.c. 4930207753Smm 4931207753Smmcommit d53e9b77054cfade6a643e77d085273a348b189c 4932207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4933207753SmmDate: Sun Jan 20 20:14:26 2008 +0200 4934207753Smm 4935207753Smm Added debug/repeat.c. 4936207753Smm 4937207753Smmcommit 107259e306bcfc2336a0fb870fb58034c28faa52 4938207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4939207753SmmDate: Sun Jan 20 20:12:58 2008 +0200 4940207753Smm 4941207753Smm Fix alignment handling bugs in Subblock encoder. 4942207753Smm 4943207753Smm This leaves one known alignment bug unfixed: If repeat count 4944207753Smm doesn't fit into 28-bit integer, the encoder has to split 4945207753Smm this to multiple Subblocks with Subblock Type `Repeating Data'. 4946207753Smm The extra Subblocks may have wrong alignment. Correct alignment 4947207753Smm is restored after the split Repeating Data has been completely 4948207753Smm written out. 4949207753Smm 4950207753Smm Since the encoder doesn't even try to fix the alignment unless 4951207753Smm the size of Data is at least 4 bytes, to trigger this bug you 4952207753Smm need at least 4 GiB of repeating data with sequence length of 4953207753Smm 4 or more bytes. Since the worst thing done by this bug is 4954207753Smm misaligned data (no data corruption), this bug simply isn't 4955207753Smm worth fixing, because a proper fix isn't simple. 4956207753Smm 4957207753Smmcommit e141fe18950400faaa3503ff88ac20eacd73e88c 4958207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4959207753SmmDate: Sat Jan 19 21:16:33 2008 +0200 4960207753Smm 4961207753Smm Implemented LZMA_SYNC_FLUSH support to the Subblock encoder. 4962207753Smm The API for handing Subfilters was changed to make it 4963207753Smm consistent with LZMA_SYNC_FLUSH. 4964207753Smm 4965207753Smm A few sanity checks were added for Subfilter handling. Some 4966207753Smm small bugs were fixed. More comments were added. 4967207753Smm 4968207753Smmcommit 23c227a864a3b69f38c6a74306161d4e6918d1cc 4969207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4970207753SmmDate: Sat Jan 19 15:19:21 2008 +0200 4971207753Smm 4972207753Smm Revised the Delta filter implementation. The initialization 4973207753Smm function is still shared between encoder and decoder, but the 4974207753Smm actual coding is in separate files for encoder and decoder. 4975207753Smm 4976207753Smm There are now separate functions for the actual delta 4977207753Smm calculation depending on if Delta is the last filter in the 4978207753Smm chain or not. If it is the last, the new code copies the 4979207753Smm data from input to output buffer and does the delta 4980207753Smm calculation at the same time. The old code first copied the 4981207753Smm data, then did the delta in the target buffer, which required 4982207753Smm reading through the data twice. 4983207753Smm 4984207753Smm Support for LZMA_SYNC_FLUSH was added to the Delta encoder. 4985207753Smm This doesn't change anything in the file format. 4986207753Smm 4987207753Smmcommit 61dc82f3e306b25ce3cd3d529df9ec7a0ec04b73 4988207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4989207753SmmDate: Fri Jan 18 20:18:08 2008 +0200 4990207753Smm 4991207753Smm Added the debug directory and the first debug tool 4992207753Smm (sync_flush). These tools are not built unless the 4993207753Smm user runs "make" in the debug directory. 4994207753Smm 4995207753Smmcommit 0ae3208db94585eb8294b97ded387de0a3a07646 4996207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 4997207753SmmDate: Fri Jan 18 20:13:00 2008 +0200 4998207753Smm 4999207753Smm Added test files to test usage of flush marker in LZMA. 5000207753Smm 5001207753Smmcommit ab5feaf1fcc146ef9fd39360c53c290bec39524e 5002207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5003207753SmmDate: Fri Jan 18 20:02:52 2008 +0200 5004207753Smm 5005207753Smm Fix LZMA_SYNC_FLUSH handling in LZ and LZMA encoders. 5006207753Smm That code is now almost completely in LZ coder, where 5007207753Smm it can be shared with other LZ77-based algorithms in 5008207753Smm future. 5009207753Smm 5010207753Smmcommit 079c4f7fc26b3d0b33d9ae7536697b45f3b73585 5011207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5012207753SmmDate: Fri Jan 18 17:21:24 2008 +0200 5013207753Smm 5014207753Smm Don't add -g to CFLAGS when --enable-debug is specified. 5015207753Smm It's the job of the user to put that in CFLAGS. 5016207753Smm 5017207753Smmcommit 61d1784d8f1761d979a6da6e223e279ca33815e6 5018207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5019207753SmmDate: Fri Jan 18 14:17:37 2008 +0200 5020207753Smm 5021207753Smm Set stdin and stdout to binary mode on Windows. This patch is 5022207753Smm a forward port of b7b22fcb979a16d3a47c8001f058c9f7d4416068 5023207753Smm from lzma-utils-legacy.git. I don't know if the new code base 5024207753Smm builds on Windows, but this is a start. 5025207753Smm 5026207753Smmcommit c9cba976913e55ff9aac8a8133cc94416c7c1c9c 5027207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5028207753SmmDate: Fri Jan 18 00:50:29 2008 +0200 5029207753Smm 5030207753Smm Added test_compress.sh and bunch of files needed by it. 5031207753Smm This new set of tests compress and decompress several 5032207753Smm test files with many different compression options. 5033207753Smm This set of tests will be extended later. 5034207753Smm 5035207753Smmcommit 33be3c0e24d8f43376ccf71cc77d53671e792f07 5036207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5037207753SmmDate: Thu Jan 17 18:56:53 2008 +0200 5038207753Smm 5039207753Smm Subblock decoder: Don't exit the main loop in decode_buffer() 5040207753Smm too early if we hit End of Input while decoding a Subblock of 5041207753Smm type Repeating Data. To keep the loop termination condition 5042207753Smm elegant, the order of enumerations in coder->sequence were 5043207753Smm changed. 5044207753Smm 5045207753Smm To keep the case-labels in roughly the same order as the 5046207753Smm enumerations in coder->sequence, large chunks of code was 5047207753Smm moved around. This made the diff big and ugly compared to 5048207753Smm the amount of the actual changes made. 5049207753Smm 5050207753Smmcommit b254bd97b1cdb68d127523d91ca9e054ed89c4fd 5051207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5052207753SmmDate: Thu Jan 17 17:39:42 2008 +0200 5053207753Smm 5054207753Smm Fix wrong too small size of argument unfiltered_max 5055207753Smm in ia64_coder_init(). It triggered assert() in 5056207753Smm simple_coder.c, and could have caused a buffer overflow. 5057207753Smm 5058207753Smm This error was probably a copypaste mistake, since most 5059207753Smm of the simple filters use unfiltered_max = 4. 5060207753Smm 5061207753Smmcommit 8f5794c8f1a30e8e3b524b415bbe81af2e04c64a 5062207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5063207753SmmDate: Thu Jan 17 17:27:45 2008 +0200 5064207753Smm 5065207753Smm Added --delta to the output of "lzma --help". 5066207753Smm 5067207753Smmcommit f88590e0014b38d40465937c19f25f05f16c79ae 5068207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5069207753SmmDate: Thu Jan 17 13:14:20 2008 +0200 5070207753Smm 5071207753Smm Fix Subblock docoder: If Subblock filter was used with known 5072207753Smm Uncompressed Size, and the last output byte was from RLE, 5073207753Smm the code didn't stop decoding as it should have done. 5074207753Smm 5075207753Smmcommit bc0b945ca376e333077644d2f7fd54c2848aab8a 5076207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5077207753SmmDate: Wed Jan 16 16:33:37 2008 +0200 5078207753Smm 5079207753Smm Tiny non-technical edits to file-format.txt. 5080207753Smm 5081207753Smmcommit 7599bb7064ccf007f054595dedda7927af868252 5082207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5083207753SmmDate: Wed Jan 16 14:48:04 2008 +0200 5084207753Smm 5085207753Smm Plugged a memory leak in stream_decoder.c. 5086207753Smm 5087207753Smmcommit 0b581539311f3712946e81e747839f8fb5f441a7 5088207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5089207753SmmDate: Wed Jan 16 14:47:27 2008 +0200 5090207753Smm 5091207753Smm Added memory leak detection to lzmadec.c. 5092207753Smm 5093207753Smmcommit 5b5b13c7bb8fde6331064d21f3ebde41072480c4 5094207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5095207753SmmDate: Wed Jan 16 14:46:50 2008 +0200 5096207753Smm 5097207753Smm Added lzma_memlimit_count(). 5098207753Smm 5099207753Smmcommit 19389f2b82ec54fd4c847a18f16482e7be4c9887 5100207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5101207753SmmDate: Wed Jan 16 14:31:44 2008 +0200 5102207753Smm 5103207753Smm Added ARRAY_SIZE(array) macro. 5104207753Smm 5105207753Smmcommit 9bc33a54cbf83952130adbcb1be32c6882485416 5106207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5107207753SmmDate: Wed Jan 16 13:27:03 2008 +0200 5108207753Smm 5109207753Smm Make Uncompresed Size validation more strict 5110207753Smm in alone_decoder.c. 5111207753Smm 5112207753Smmcommit 01d71d60b79027e1ce3eb9c79ae5191e1407c883 5113207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5114207753SmmDate: Tue Jan 15 17:46:59 2008 +0200 5115207753Smm 5116207753Smm Free the allocated memory in lzmadec if debugging is 5117207753Smm enabled. This should make it possible to detect possible 5118207753Smm memory leaks with Valgrind. 5119207753Smm 5120207753Smmcommit 8235e6e5b2878f76633afcda9a334640db503ef5 5121207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5122207753SmmDate: Tue Jan 15 16:25:38 2008 +0200 5123207753Smm 5124207753Smm Fix memory leaks from test_block_header.c. 5125207753Smm 5126207753Smmcommit f10fc6a69d40b6d5c9cfbf8d3746f49869c2e2f6 5127207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5128207753SmmDate: Tue Jan 15 14:23:35 2008 +0200 5129207753Smm 5130207753Smm Use fastpos.h when encoding LZMA dictionary size in 5131207753Smm Filter Flags encoder. 5132207753Smm 5133207753Smmcommit e5728142a2048979f5c0c2149ce71ae952a092e1 5134207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5135207753SmmDate: Tue Jan 15 14:02:22 2008 +0200 5136207753Smm 5137207753Smm Revised the fastpos code. It now uses the slightly faster 5138207753Smm table-based version from LZMA SDK 4.57. This should be 5139207753Smm fast on most systems. 5140207753Smm 5141207753Smm A simpler and smaller alternative version is also provided. 5142207753Smm On some CPUs this can be even a little faster than the 5143207753Smm default table-based version (see comments in fastpos.h), 5144207753Smm but on most systems the table-based code is faster. 5145207753Smm 5146207753Smmcommit 10437b5b567f6a025ff16c45a572e417a0a9cc26 5147207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5148207753SmmDate: Tue Jan 15 13:32:13 2008 +0200 5149207753Smm 5150207753Smm Added bsr.h. 5151207753Smm 5152207753Smmcommit f3c88e8b8d8dd57f4bba5f0921eebf276437c244 5153207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5154207753SmmDate: Tue Jan 15 13:29:14 2008 +0200 5155207753Smm 5156207753Smm Fixed assembler detection in configure.ac, and added 5157207753Smm detection for x86_64. 5158207753Smm 5159207753Smmcommit 54ec204f58287f50d3976288295da4188a19192b 5160207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5161207753SmmDate: Tue Jan 15 12:20:41 2008 +0200 5162207753Smm 5163207753Smm Omit invalid space from printf() format string 5164207753Smm in price_table_gen.c. 5165207753Smm 5166207753Smmcommit 01b4b19f49f00e17a0f9cb8754c672ac0847b6e1 5167207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5168207753SmmDate: Tue Jan 15 09:54:34 2008 +0200 5169207753Smm 5170207753Smm Removed a few unused macros from lzma_common.h. 5171207753Smm 5172207753Smmcommit 19bd7f3cf25e4ff8487ef7098ca4a7b58681961d 5173207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5174207753SmmDate: Tue Jan 15 08:37:42 2008 +0200 5175207753Smm 5176207753Smm Fix a typo in lzma_encoder.c. 5177207753Smm 5178207753Smmcommit 9f9b1983013048f2142e8bc7e240149d2687bedc 5179207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5180207753SmmDate: Tue Jan 15 08:36:25 2008 +0200 5181207753Smm 5182207753Smm Convert bittree_get_price() and bittree_reverse_get_price() 5183207753Smm from macros to inline functions. 5184207753Smm 5185207753Smmcommit 78e85cb1a7667c54853670d2eb09d754bcbda87d 5186207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5187207753SmmDate: Tue Jan 15 07:44:59 2008 +0200 5188207753Smm 5189207753Smm Fix CRC code in case --enable-small is used. 5190207753Smm 5191207753Smmcommit 949d4346e2d75bcd9dcb66c394d8d851d8db3aa0 5192207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5193207753SmmDate: Tue Jan 15 07:41:39 2008 +0200 5194207753Smm 5195207753Smm Fix typo in test_index.c. 5196207753Smm 5197207753Smmcommit d13d693155c176fc9e9ad5c50d48ccba27c2d9c6 5198207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5199207753SmmDate: Tue Jan 15 07:40:21 2008 +0200 5200207753Smm 5201207753Smm Added precomputed range coder probability price table. 5202207753Smm 5203207753Smmcommit 362dc3843b373c1007a50a4719f378981f18ae03 5204207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5205207753SmmDate: Mon Jan 14 13:42:43 2008 +0200 5206207753Smm 5207207753Smm Remove RC_BUFFER_SIZE from lzma_encoder_private.h 5208207753Smm and replace it with a sanity check. 5209207753Smm 5210207753Smmcommit e22b37968d153683fec61ad37b6b160cb7ca4ddc 5211207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5212207753SmmDate: Mon Jan 14 13:39:54 2008 +0200 5213207753Smm 5214207753Smm Major changes to LZ encoder, LZMA encoder, and range encoder. 5215207753Smm These changes implement support for LZMA_SYNC_FLUSH in LZMA 5216207753Smm encoder, and move the temporary buffer needed by range encoder 5217207753Smm from lzma_range_encoder structure to lzma_lz_encoder. 5218207753Smm 5219207753Smmcommit b59ef3973781f892c0a72b5e5934194567100be5 5220207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5221207753SmmDate: Mon Jan 14 13:34:29 2008 +0200 5222207753Smm 5223207753Smm Added one assert() to process.c of the command line tool. 5224207753Smm 5225207753Smmcommit 9547e734a00ddb64c851fa3f116e4f9e7d763ea7 5226207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5227207753SmmDate: Mon Jan 14 12:09:52 2008 +0200 5228207753Smm 5229207753Smm Don't use coder->lz.stream_end_was_reached in assertions 5230207753Smm in match_c.h. 5231207753Smm 5232207753Smmcommit 3e09e1c05871f3757f759b801890ccccc9286608 5233207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5234207753SmmDate: Mon Jan 14 12:08:02 2008 +0200 5235207753Smm 5236207753Smm In lzma_read_match_distances(), don't use 5237207753Smm coder->lz.stream_end_was_reached. That variable 5238207753Smm will be removed, and the check isn't required anyway. 5239207753Smm Rearrange the check so that it doesn't make one to 5240207753Smm think that there could be an integer overflow. 5241207753Smm 5242207753Smmcommit a670fec8021e5962429689c194148a04c3418872 5243207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5244207753SmmDate: Mon Jan 14 11:56:41 2008 +0200 5245207753Smm 5246207753Smm Small LZMA_SYNC_FLUSH fixes to Block and Single-Stream encoders. 5247207753Smm 5248207753Smmcommit 3599dba9570a6972a16b6398d6c838e9b420e985 5249207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5250207753SmmDate: Mon Jan 14 11:54:56 2008 +0200 5251207753Smm 5252207753Smm More fixes to LZMA decoder's flush marker handling. 5253207753Smm 5254207753Smmcommit f73c2ab6079ed5675a42b39d584a567befbd4624 5255207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5256207753SmmDate: Thu Jan 10 17:13:42 2008 +0200 5257207753Smm 5258207753Smm Eliminate lzma_lz_encoder.must_move_pos. It's needed 5259207753Smm only in one place which isn't performance criticial. 5260207753Smm 5261207753Smmcommit 382808514a42b2f4b4a64515e2dfb3fc1bc48ecd 5262207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5263207753SmmDate: Wed Jan 9 20:05:57 2008 +0200 5264207753Smm 5265207753Smm Define HAVE_ASM_X86 when x86 assembler optimizations are 5266207753Smm used. This #define will be useful for inline assembly. 5267207753Smm 5268207753Smmcommit 0e70fbe4032351aab13a1cd8e5deced105c0b276 5269207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5270207753SmmDate: Wed Jan 9 12:06:46 2008 +0200 5271207753Smm 5272207753Smm Added good-single-none-empty_3.lzma and 5273207753Smm bad-single-none-empty.lzma. 5274207753Smm 5275207753Smmcommit 379fbbe84d922c7cc00afa65c6f0c095da596b19 5276207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5277207753SmmDate: Tue Jan 8 23:11:59 2008 +0200 5278207753Smm 5279207753Smm Take advantage of return_if_error() in block_decoder.c. 5280207753Smm 5281207753Smmcommit 97d5fa82077e57815dfad995dc393c2809a78539 5282207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5283207753SmmDate: Tue Jan 8 23:10:57 2008 +0200 5284207753Smm 5285207753Smm Updated tests/files/README. 5286207753Smm 5287207753Smmcommit 3bb9bb310936cba6a743b4f06739a397dec7c28f 5288207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5289207753SmmDate: Tue Jan 8 23:05:40 2008 +0200 5290207753Smm 5291207753Smm Added test files with empty Compressed Data. 5292207753Smm 5293207753Smmcommit 7054c5f5888ac6a7178cd43dc9583ce6c7e78c9f 5294207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5295207753SmmDate: Tue Jan 8 22:58:42 2008 +0200 5296207753Smm 5297207753Smm Fix decoding of Blocks that have only Block Header. 5298207753Smm 5299207753Smmcommit 753e4d95cd1cf29c632dfe1a670af7c67aeffbf4 5300207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5301207753SmmDate: Tue Jan 8 22:27:46 2008 +0200 5302207753Smm 5303207753Smm Added good-single-subblock_implicit.lzma. 5304207753Smm 5305207753Smmcommit faeac7b7aca75f86afed1e7cc06279d9d497c627 5306207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5307207753SmmDate: Tue Jan 8 18:50:30 2008 +0200 5308207753Smm 5309207753Smm Disable CRC32 from Block Headers when --check=none 5310207753Smm has been specified. 5311207753Smm 5312207753Smmcommit a751126dbb656767ed4666cf0e5d3e17349d93d1 5313207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5314207753SmmDate: Tue Jan 8 13:36:29 2008 +0200 5315207753Smm 5316207753Smm Fixed encoding of empty files. Arguments to is_size_valid() 5317207753Smm were in wrong order in block_encoder.c. 5318207753Smm 5319207753Smmcommit 9080267603b1006c4867c823307dca9df8be0d20 5320207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5321207753SmmDate: Tue Jan 8 13:35:36 2008 +0200 5322207753Smm 5323207753Smm Added a few test files. 5324207753Smm 5325207753Smmcommit b4943ccf73b64fc93a90a23474509c316f55eb2b 5326207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5327207753SmmDate: Tue Jan 8 12:29:58 2008 +0200 5328207753Smm 5329207753Smm Avoid using ! in test_files.sh, because that doesn't work 5330207753Smm with some ancient /bin/sh versions. 5331207753Smm 5332207753Smmcommit e2417b2b9134f3f65e14b61e23cd3644d8954353 5333207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5334207753SmmDate: Tue Jan 8 00:48:30 2008 +0200 5335207753Smm 5336207753Smm More pre-C99 inttypes.h compatibility fixes. Now the code 5337207753Smm should work even if the system has no inttypes.h. 5338207753Smm 5339207753Smmcommit 5d227e51c23639423f4ade06aabb54e131f8505e 5340207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5341207753SmmDate: Mon Jan 7 23:25:32 2008 +0200 5342207753Smm 5343207753Smm Updated fi.po although it's currently pretty much crap. 5344207753Smm 5345207753Smmcommit c7189d981a1b27c63da0c1ee80d9b5cd8ce1733d 5346207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5347207753SmmDate: Mon Jan 7 23:14:25 2008 +0200 5348207753Smm 5349207753Smm Test for $GCC = yes instead of if it is non-empty. This 5350207753Smm way it is possible to use ac_cv_c_compiler_gnu=no to 5351207753Smm force configure to think it is using non-GNU C compiler. 5352207753Smm 5353207753Smmcommit 3dbbea82b74bb841c995ad332a3aeca613015e10 5354207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5355207753SmmDate: Mon Jan 7 21:49:41 2008 +0200 5356207753Smm 5357207753Smm Added test_files.sh to tests/Makefile.am so it gets 5358207753Smm included in the tarball with "make dist". 5359207753Smm 5360207753Smmcommit 2fd2d181543feab1b4003f3ac6e85625fbee04f0 5361207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5362207753SmmDate: Mon Jan 7 18:22:24 2008 +0200 5363207753Smm 5364207753Smm Cosmetic edit to test_files.sh. 5365207753Smm 5366207753Smmcommit 9a71d573100a990ceb30ce0bec6a9a15d795605f 5367207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5368207753SmmDate: Mon Jan 7 18:09:44 2008 +0200 5369207753Smm 5370207753Smm Added tests/files/README. 5371207753Smm 5372207753Smmcommit 47f48fe9936ed72617a60fbd015df7e0e47a1e43 5373207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5374207753SmmDate: Mon Jan 7 14:20:57 2008 +0200 5375207753Smm 5376207753Smm Tell in COPYING that everything in tests/files is 5377207753Smm public domain. 5378207753Smm 5379207753Smmcommit 3502b3e1d00251d3c8dda96079440705c28d8225 5380207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5381207753SmmDate: Mon Jan 7 14:19:05 2008 +0200 5382207753Smm 5383207753Smm Cleaned up the tests/files directory. 5384207753Smm 5385207753Smmcommit 908b2ac604b9940369d7fe8a45e9eb6da5d2a24c 5386207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5387207753SmmDate: Mon Jan 7 13:49:19 2008 +0200 5388207753Smm 5389207753Smm Added test_files.sh to test decoding of the files in 5390207753Smm the tests/files directory. It doesn't test the malicious 5391207753Smm files yet. 5392207753Smm 5393207753Smmcommit ecb2a6548f5978022a8fa931719dc575f5fd3bf6 5394207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5395207753SmmDate: Mon Jan 7 11:23:13 2008 +0200 5396207753Smm 5397207753Smm Updated README regarding the assembler optimizations. 5398207753Smm 5399207753Smmcommit eacb8050438d3e6146c86eb9732d3fb1ef1825cb 5400207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5401207753SmmDate: Mon Jan 7 10:58:00 2008 +0200 5402207753Smm 5403207753Smm Updated THANKS. 5404207753Smm 5405207753Smmcommit 1239649f96132b18e3b7e2dd152ecf53a195caa8 5406207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5407207753SmmDate: Sun Jan 6 21:47:17 2008 +0200 5408207753Smm 5409207753Smm Cosmetic changes to configure.ac. 5410207753Smm 5411207753Smmcommit 88ee301ec2e4506a30ec7ac9aaa2288e2dcadd0e 5412207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5413207753SmmDate: Sun Jan 6 19:46:38 2008 +0200 5414207753Smm 5415207753Smm Automatically disable assembler code on Darwin x86. 5416207753Smm Darwin has different ABI than GNU+Linux and Solaris, 5417207753Smm thus the assembler code doesn't assemble on Darwin. 5418207753Smm 5419207753Smmcommit c15a7abf66e3a70792f7444115e484c7981c8284 5420207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5421207753SmmDate: Sun Jan 6 19:45:27 2008 +0200 5422207753Smm 5423207753Smm With printf(), use PRIu64 with a cast to uint64_t instead 5424207753Smm of %zu, because some pre-C99 libc versions don't support %zu. 5425207753Smm 5426207753Smmcommit 4e7e54c4c522ab2f6a7abb92cefc4f707e9568fb 5427207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5428207753SmmDate: Sun Jan 6 16:27:41 2008 +0200 5429207753Smm 5430207753Smm Introduced compatibility with systems that have pre-C99 5431207753Smm or no inttypes.h. This is useful when the compiler has 5432207753Smm good enough support for C99, but libc headers don't. 5433207753Smm 5434207753Smm Changed liblzma API so that sys/types.h and inttypes.h 5435207753Smm have to be #included before #including lzma.h. On systems 5436207753Smm that don't have C99 inttypes.h, it's the problem of the 5437207753Smm applications to provide the required types and macros 5438207753Smm before #including lzma.h. 5439207753Smm 5440207753Smm If lzma.h defined the missing types and macros, it could 5441207753Smm conflict with third-party applications whose configure 5442207753Smm has detected that the types are missing and defined them 5443207753Smm in config.h already. An alternative would have been 5444207753Smm introducing lzma_uint32 and similar types, but that would 5445207753Smm just be an extra pain on modern systems. 5446207753Smm 5447207753Smmcommit a71864f77dfb76b5d78a270641539947c312583a 5448207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5449207753SmmDate: Sat Jan 5 19:57:00 2008 +0200 5450207753Smm 5451207753Smm Fix typo in comment (INT64_MAX -> UINT64_MAX). 5452207753Smm 5453207753Smmcommit 072927905a3b66281c6311b4b351caa501d8b73a 5454207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5455207753SmmDate: Sat Jan 5 19:42:04 2008 +0200 5456207753Smm 5457207753Smm Rearranged testing of GCC-specific flags. 5458207753Smm 5459207753Smmcommit d160ee32598c6d1cd9054ef019e8c9331208b188 5460207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5461207753SmmDate: Sat Jan 5 01:20:24 2008 +0200 5462207753Smm 5463207753Smm Another bug fix for flush marker detection. 5464207753Smm 5465207753Smmcommit fc67f79f607cbfa78c6f47a69dec098d8659b162 5466207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5467207753SmmDate: Fri Jan 4 21:37:01 2008 +0200 5468207753Smm 5469207753Smm Fix stupid bugs in flush marker detection. 5470207753Smm 5471207753Smmcommit 0029cbbabe87d491fc046a55a629a6d556010baa 5472207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5473207753SmmDate: Fri Jan 4 21:30:33 2008 +0200 5474207753Smm 5475207753Smm Added support for flush marker, which will be in files 5476207753Smm that use LZMA_SYNC_FLUSH with encoder (not implemented 5477207753Smm yet). This is a new feature in the raw LZMA format, 5478207753Smm which isn't supported by old decoders. This shouldn't 5479207753Smm be a problem in practice, since lzma_alone_encoder() 5480207753Smm will not allow LZMA_SYNC_FLUSH, and thus not allow 5481207753Smm creating files on decodable with old decoders. 5482207753Smm 5483207753Smm Made lzma_decoder.c to require tab width of 4 characters 5484207753Smm if one wants to fit the code in 80 columns. This makes 5485207753Smm the code easier to read. 5486207753Smm 5487207753Smmcommit bbfd1f6ab058a7e661545205befcb7f70c5685ab 5488207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5489207753SmmDate: Fri Jan 4 20:45:05 2008 +0200 5490207753Smm 5491207753Smm Moved range decoder initialization (reading the first 5492207753Smm five input bytes) from LZMA decoder to range decoder 5493207753Smm header. Did the same for decoding of direct bits. 5494207753Smm 5495207753Smmcommit 5db745cd2a74f6ed2e52f5c716c08ed0daf17ebc 5496207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5497207753SmmDate: Fri Dec 14 11:15:21 2007 +0200 5498207753Smm 5499207753Smm Added a note to README that --disable-assembler 5500207753Smm must be used on Darwin. 5501207753Smm 5502207753Smmcommit 44b333d4615b5aabc557a0e1b6bb0096da3fae24 5503207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5504207753SmmDate: Fri Dec 14 10:07:10 2007 +0200 5505207753Smm 5506207753Smm Use the filename suffix .S instead of .s for assembler files 5507207753Smm so that the preprocessor removes the /* */ style comments, 5508207753Smm which are not supported by some non-GNU assemblers (Solaris) 5509207753Smm that otherwise work with this code. 5510207753Smm 5511207753Smmcommit ec1c82b2e82f395f6e8e19ac212a639644330cd7 5512207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5513207753SmmDate: Fri Dec 14 09:59:05 2007 +0200 5514207753Smm 5515207753Smm Fixed wrong symbol name in crc64_x86.s. 5516207753Smm 5517207753Smmcommit 2881570df6803eed2fe550af34574e8e61794804 5518207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5519207753SmmDate: Fri Dec 14 09:53:24 2007 +0200 5520207753Smm 5521207753Smm Use .globl instead of .global in x86 assembler code for 5522207753Smm better portability. Still needs fixing the commenting. 5523207753Smm 5524207753Smmcommit 698470b8f33fc0e5f27dafa93b39b6dd5dde5a66 5525207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5526207753SmmDate: Thu Dec 13 20:14:37 2007 +0200 5527207753Smm 5528207753Smm Fixed a few short options that take an argument. 5529207753Smm short_opts[] was missing colons to indicate 5530207753Smm required argument. Thanks to Fabio Pedretti for 5531207753Smm the bug report. 5532207753Smm 5533207753Smmcommit 918bcb0e0728d2d976621e9f35b56f224f11d989 5534207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5535207753SmmDate: Tue Dec 11 17:08:04 2007 +0200 5536207753Smm 5537207753Smm Removed uncompressed size tracking from Delta encoder too. 5538207753Smm 5539207753Smmcommit 3e16d51dd645667b05ff826665b1fc353aa41cd9 5540207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5541207753SmmDate: Tue Dec 11 16:49:19 2007 +0200 5542207753Smm 5543207753Smm Remove uncompressed size tracking from the filter encoders. 5544207753Smm It's not strictly needed there, and just complicates the 5545207753Smm code. LZ encoder never even had this feature. 5546207753Smm 5547207753Smm The primary reason to have uncompressed size tracking in 5548207753Smm filter encoders was validating that the application 5549207753Smm doesn't give different amount of input that it had 5550207753Smm promised. A side effect was to validate internal workings 5551207753Smm of liblzma. 5552207753Smm 5553207753Smm Uncompressed size tracking is still present in the Block 5554207753Smm encoder. Maybe it should be added to LZMA_Alone and raw 5555207753Smm encoders too. It's simpler to have one coder just to 5556207753Smm validate the uncompressed size instead of having it 5557207753Smm in every filter. 5558207753Smm 5559207753Smmcommit 5286723e0d1ac386d5b07f08d78e61becf895a5a 5560207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5561207753SmmDate: Tue Dec 11 14:10:53 2007 +0200 5562207753Smm 5563207753Smm Get rid of no-NLS gnulib. I don't know how to get it 5564207753Smm working with Automake. People who want smaller lzmadec 5565207753Smm should use --disable-nls on non-GNU systems. 5566207753Smm 5567207753Smmcommit ce8b036a6c7a43b290356b673d953f6d76b2be64 5568207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5569207753SmmDate: Tue Dec 11 14:09:35 2007 +0200 5570207753Smm 5571207753Smm Fixed a typo in tests/Makefile.am which prevented 5572207753Smm building the tests if gnulib was needed. 5573207753Smm 5574207753Smmcommit 7c1ad41eb611ed89e5bb8792a3beb533b7aa59f4 5575207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5576207753SmmDate: Tue Dec 11 11:18:58 2007 +0200 5577207753Smm 5578207753Smm Fixed wrong type of flags_size in Subblock encoder. 5579207753Smm 5580207753Smmcommit ce64df716243fdc40359090d1f6541f3a4f5f21a 5581207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5582207753SmmDate: Mon Dec 10 20:44:16 2007 +0200 5583207753Smm 5584207753Smm Bumped version number to 4.42.3alpha. 5585207753Smm 5586207753Smmcommit b499a0403ea5c41d6a25b40275eb6c57643052ce 5587207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5588207753SmmDate: Mon Dec 10 15:02:50 2007 +0200 5589207753Smm 5590207753Smm Disabled some unneeded warnings and made "make dist" work. 5591207753Smm 5592207753Smmcommit 2ab8adb5165a0b77114a7eb21f9ff1e6a266f172 5593207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5594207753SmmDate: Sun Dec 9 21:43:15 2007 +0200 5595207753Smm 5596207753Smm Added LZMA_SYNC_FLUSH support to the Copy filter. 5597207753Smm 5598207753Smmcommit 329c272d501e88793dda5540358d55c12428d194 5599207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5600207753SmmDate: Sun Dec 9 17:14:07 2007 +0200 5601207753Smm 5602207753Smm Added missing LZMA_API to the C versions of the CRC functions. 5603207753Smm The x86 assembler versions were already OK. 5604207753Smm 5605207753Smmcommit c90daf86ce683fa8cf80491d624ffb158dfbd9d7 5606207753SmmAuthor: Jim Meyering <meyering@redhat.com> 5607207753SmmDate: Sun Dec 9 15:34:25 2007 +0100 5608207753Smm 5609207753Smm * tests/test_block_header.c (test3): Remove duplicate initializer. 5610207753Smm 5611207753Smmcommit 07ac881779a8477f2c1ab112b91a129e24aa743c 5612207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5613207753SmmDate: Sun Dec 9 17:06:45 2007 +0200 5614207753Smm 5615207753Smm Take advantage of return_if_error() macro in more places. 5616207753Smm Cleaned Subblock filter's initialization code too. 5617207753Smm 5618207753Smmcommit 41338717964f510ee61d70b25bd4c502ec9f77cf 5619207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5620207753SmmDate: Sun Dec 9 12:13:01 2007 +0200 5621207753Smm 5622207753Smm Added a bunch of .lzma test files. 5623207753Smm 5624207753Smmcommit ff946ceb7975d4f11950afd33f6315b4d20d1a03 5625207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5626207753SmmDate: Sun Dec 9 11:24:48 2007 +0200 5627207753Smm 5628207753Smm Re-enabled the security checks in Subblock decoder 5629207753Smm that were disabled for debugging reasons. 5630207753Smm 5631207753Smmcommit 2bf36d22d2c24ac3f488e63b35564fa2f6dab8d1 5632207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5633207753SmmDate: Sun Dec 9 11:03:28 2007 +0200 5634207753Smm 5635207753Smm Fixed the tests to build with -Werror. 5636207753Smm 5637207753Smmcommit 5d018dc03549c1ee4958364712fb0c94e1bf2741 5638207753SmmAuthor: Lasse Collin <lasse.collin@tukaani.org> 5639207753SmmDate: Sun Dec 9 00:42:33 2007 +0200 5640207753Smm 5641207753Smm Imported to git. 5642