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