OSDN Git Service

c180e7b624a223e2887c5504edd46195c2a00b1e
[lha/lha.git] / ChangeLog
1 2008-10-04  Koji Arai  <arai@users.sourceforge.jp>
2
3         Timestamp archiving feature is added. Thanks to Reynir Stefansson.
4
5         * configure.ac: updated version.
6
7         * src/lha.h: added a variable, timestamp_archive.
8
9         * src/lhadd.c (copy_old_one): moved from src/lharc.c, and reset
10         most_recent to most recent timestamp.
11
12         * src/prototypes.h: copy_old_one() is changed to static function.
13
14         * src/lhadd.c (add_one): reset most_recent to most recent timestamp.
15
16         * src/lhadd.c (set_archive_file_mode): When --timestamp-archive is
17         specified, archive timestamp adjust to most recent file in the
18         archive.
19
20         * src/lhadd.c (cmd_add, cmd_delete): should call set_archive_file_mode() without noexec.
21
22         * src/lharc.c (init_variable, parse_suboption): added an option --timestamp-archive.
23
24         * tests/Makefile.am: added lha-test19.
25
26         * tests/lha-test19: newly added for checking the timestamp
27         archiving.
28
29         * tests/lha-test.in (identical_timestamp) added an utility function.
30
31         * man/lha.1: describe about --timestamp-archive.
32
33 2008-08-23  Koji Arai  <arai@users.sourceforge.jp>
34
35         * src/lhext.c (cmd_extract): stream position was adjusted by wrong value.
36
37         * src/lhext.c (extract_one): fixed misspelling.
38
39 2008-08-04  Koji Arai  <arai@users.sourceforge.jp>
40
41         * src/larc.c (decode_start_lz5): should use the dtext[] instead of the text[].
42
43         * src/lha.h (dtext): defined as global variable.
44
45         * src/slide.c (decode): ditto.
46
47 2008-08-03  Koji Arai  <arai@users.sourceforge.jp>
48
49         * src/header.c (convert_filename): Fixed a bug:
50         If the utf8 is specified for the --system-kanji-code and the path
51         separator is used with the backslash (0x5c) in archive (level 0
52         header is used 0x5c as path separator), when extracting, it has been
53         converted to the U+00A5 (yen sign) instead of the slash (0x2f).
54
55 2008-06-24  Koji Arai  <arai@users.sourceforge.jp>
56
57         * Hacking_of_LHa: updated.
58
59 2008-05-14  Koji Arai  <arai@users.sourceforge.jp>
60
61         * src/lhext.c (extract_one): The -t command should not affect extracting file attributes.
62
63 2008-05-02  Koji Arai  <arai@users.sourceforge.jp>
64
65         * added a long option --debug=dumplzss which display debugging information for the LZSS.
66
67 2008-03-08  Koji Arai  <arai@users.sourceforge.jp>
68
69         * src/lhext.c (add_dirinfo): no longer suppose that contents of the LZH archive is sorted by pathname.
70
71         * tests/lha-test18: added tests for above.
72
73         * src/lharc.c (parse_suboption): added debugging option `--debug=nosort' and `--debug=norecursion'
74         for above tests.
75
76         * src/lha.h: added two global variables for above options: sort_contents, recursive_archiving;
77
78         * src/lharc.c (init_variable): ditto.
79         (sort_files): no sort arguments with --debug=nosort.
80         (find_files): no sort directory entries with --debug=nosort.
81
82         * src/lhadd.c (append_it): non-sorted and non-recursive archiving with --debug=nosort and --debug=norecursion.
83
84         * src/lhadd.c (remove_one): should use the message() instead of printf().
85
86 2008-03-07  Koji Arai  <arai@users.sourceforge.jp>
87
88         * man/lha.1: correct the description about the -m command.
89
90 2008-03-04  Koji Arai  <arai@users.sourceforge.jp>
91
92         * man/lha.1: changed a little. the BUGS section was removed.
93
94         * man/lha.1: correct English by Stanislav Brabec. Thanks.
95
96 2008-03-02  Koji Arai  <arai@users.sourceforge.jp>
97
98         * src/getopt_long.c (has_argument_short): should treat "-ab" as "-a -b"
99         for shortopts="-a[0123]b".
100
101 2008-03-02  Koji Arai  <arai@users.sourceforge.jp>
102
103         * man/lha.1: refined.
104
105 2008-02-21  Koji Arai  <arai@users.sourceforge.jp>
106
107         * src/header.c (canon_path): should remove duplicated slash.
108         (the function name is renamed from remove_dots().)
109
110         * tests/lha-test17: added a test for above.
111
112 2008-02-17  Koji Arai  <arai@users.sourceforge.jp>
113
114         * src/lhext.c (extract_one) could not extract files under readonly directories, like:
115
116             dr-xr-xr-x 2 arai arai 4096 Jan  5 03:30 foo/
117             -rw-r--r-- 1 arai arai    0 Jan  5 03:30 foo/bar
118
119         * tests/Makefile.am: added a test for above.
120
121         * tests/lha-test.in: ditto.
122
123         * tests/lha-test18: ditto.
124
125 2008-02-05  Koji Arai  <arai@users.sourceforge.jp>
126
127         * config.h. configure.ac: added a configure option
128         --with-additional-suffixes for SuSE Linux.
129
130         * src/lharc.c (open_old_archive): make it possible to add archive
131         suffixes.
132
133         * src/lharc.c (print_version): show the configure option by the
134         --version option.
135
136 2007-09-09  Koji Arai  <arai@users.sourceforge.jp>
137
138         * src/header.c: `put_longword()' should be used the ANSI-C declaration.
139
140         Created archives was broken on Big-endian machine (and 64-bits machine).
141
142 2007-09-08  Koji Arai  <arai@users.sourceforge.jp>
143
144         * Added tests for extract large files.
145
146         Added two tests for extract files over 2G and 4G bytes.
147         These are not performed in default, because it will be take a long time.
148
149 2007-09-08  Koji Arai  <arai@users.sourceforge.jp>
150
151         * Fix a bug: Could not extract 2G over files.
152
153 2007-09-05  Koji Arai  <arai@users.sourceforge.jp>
154
155         * 00readme.autoconf: Added description for the -b switch which extract MacBinaries.
156
157 2007-09-04  Koji Arai  <arai@users.sourceforge.jp>
158
159         * use the length modifier `ll' (%llu) for printing 64bit value.
160
161 2007-09-04  Koji Arai  <arai@users.sourceforge.jp>
162
163         * update prototypes.h using cproto
164
165 2007-09-03  Koji Arai  <arai@users.sourceforge.jp>
166
167         * src/append.c, src/extract.c, src/header.c, src/indicator.c, src/lha.h, src/lhadd.c, src/lhext.c, src/lhlist.c, src/prototypes.h, src/slide.c, src/util.c: 
168         Possible to extract files over 4G, use UNLHA32.DLL specific extended header.
169
170 2007-05-23  Koji Arai  <arai@users.sourceforge.jp>
171
172         * tests/lha-test.in: added an optional numeric command-line
173         argument, and a command-line switch -n.
174         when the numeric argument is specified, only the testsuite is
175         performed.  and the -n switch is specified, it is not made cleanup
176         trash files which is result of the test.
177
178         * tests/lha-test11: On MS-Windows, should consider the length of
179         current path.
180
181         * tests/lha-test11: On MS-Windows, if current directory is too
182         deep, skip this test.
183
184 2007-05-23  Koji Arai  <arai@users.sourceforge.jp>
185
186         * config.h.in, configure.ac, src/lharc.c: the option -X was deprecated.
187         In place of it, added a long option --ignore-mac-files which
188         ignore Mac specific files ._*, .DS_Store and Icon\r when the
189         archive is created. Thanks to Hiroto Sakai.
190
191 2007-05-20  Koji Arai  <arai@users.sourceforge.jp>
192
193         * repository changed to the Subversion.
194
195         * tests/lha-test12: should not use the raw CR code.
196           (when checkout from SVN repos, raw CR code is removed.)
197
198 2007-02-24  Koji Arai  <arai@users.sourceforge.jp>
199
200         * src/lharc.c (print_tiny_usage, parse_suboption): added a long
201         option "--traditional". it is just the same
202         "--convert-filename-case" for the present.
203
204         * src/header.c (get_header): the variable "noconvertcase" changed
205         to "convertcase".
206         it means that this LHa does not convert filename case automatically.
207
208         * src/lha.h: ditto.
209
210         * src/lharc.c (init_variable): ditto.
211
212         * src/lharc.c (print_tiny_usage, parse_suboption): added a long
213         option "--convert-filename-case" that change to the old behavior.
214
215         * src/lharc.c (print_usage, parse_suboption): the "g" option has
216         no meaning when extracting.
217
218         * src/header.c (write_header): no upcase filename when the generic
219         archive creating.
220
221 2007-02-24  Koji Arai  <arai@users.sourceforge.jp>
222
223         * configure.ac: updated version.
224
225         * src/lharc.c (print_usage): updated.
226
227 2007-02-24  Koji Arai  <arai@users.sourceforge.jp>
228
229         * src/header.c (copy_path_element, remove_dots, init_header):
230         should treat "foo" and "./foo" as same file, so remove "./" from
231         archived path name.
232
233         * tests/Makefile.am, tests/lha-test.in, tests/lha-test17:
234         added tests for the removing relative path.
235
236 2006-10-09  Koji Arai  <arai@users.sourceforge.jp>
237
238         * src/lha_macro.h (MIN): newly added a macro for below.
239
240         * maketbl.c (make_table): applied the security patch for the
241         CVE-2006-4335 and CVE-2006-4337.
242
243         * huf.c (read_pt_len, read_c_len, decode_c_st1, decode_p_st1):
244         applied the security patch for the CVE-2006-4338.
245
246 2006-10-09  Koji Arai  <arai@users.sourceforge.jp>
247
248         * tests/lha-test.in: the function local variable `$status' is treated as
249         the builtin variable on the Zsh version 4.3.2, so it was renamed to
250         $exit_status.
251
252         * tests/Makefile.am, tests/lha-test.in, tests/lha-test16, tests/lha-test16-l0.lzh, tests/lha-test16-l1.lzh, tests/lha-test16-l2.lzh, tests/lha-test16-lg.lzh:
253         added tests for the header CRC.
254
255 2006-10-08  Koji Arai  <arai@users.sourceforge.jp>
256
257         * 00readme.autoconf: updated.
258
259         * Hacking_of_LHa: changed mail address.
260
261 2006-10-08  Koji Arai  <arai@users.sourceforge.jp>
262
263         * configure.ac: updated version.
264
265         * configure.ac, src/header.c, src/lha_macro.h, src/lhadd.c, src/lhext.c, src/lhlist.c, tests/lha-test12:
266         re-applied the correct DJGPP patch. Thanks to Doug Kaufman.
267
268 2006-10-02  Koji Arai  <arai@users.sourceforge.jp>
269
270         * configure.ac: updated version.
271
272         * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhext.c, src/lhlist.c, src/vsnprintf.c, tests/lha-test.in, tests/lha-test11, tests/lha-test12:
273         applied the patch for the DJGPP. Thanks to Doug Kaufman.
274
275         * 00readme.autoconf, configure.ac: changed mail address.
276
277 2006-09-11  Koji Arai  <jca02266@nifty.com>
278
279         * configure.ac: updated version.
280
281         * src/lharc.c (print_usage): updated.
282
283 2006-09-11  Koji Arai  <jca02266@nifty.com>
284
285         * config.h.in (HAVE_LIBAPPLEFILE): added `b' option which extract
286         the MacBinary. Thanks to Hiroto Sakai.
287
288         * configure.ac: ditto.
289
290         * src/lha.h (decode_macbinary_contents): ditto.
291
292         * src/lhadd.c (build_temporary_file): ditto.
293
294         * src/lharc.c (decode_macbinary_contents, print_tiny_usage, parse_suboption): ditto.
295
296         * src/lhext.c (extract_one, decode_macbinary): ditto.
297
298         * src/prototypes.h (build_temporary_file): ditto.
299
300 2006-09-11  Koji Arai  <jca02266@nifty.com>
301
302         * src/lharc.c (parse_suboption): `-X' option has been ineffective.
303         Thanks to Hiroto Sakai.
304
305 2005-10-15  Koji Arai  <jca02266@nifty.com>
306
307         * src/lha_macro.h (UPDATE_CRC): To casting with (unsigned char)
308         should not be for the variable (c) but for the (crc). Thanks to
309         OKUMURA N. Shin-ya.
310
311 2005-10-13  Koji Arai  <jca02266@nifty.com>
312
313         * tests/lha-test.in: emulate POSIX shell when it is executed by
314         zsh or bash. (this part is derived from GNU Autoconf 2.59)
315
316         * tests/Makefile.am: replaced `bash' with `@sh_for_lha_test@'
317
318         * configure.ac: search shell programs to execute the lha-test.
319
320 2005-09-25  Koji Arai  <jca02266@nifty.com>
321
322         * src/prototypes.h: updated.
323
324         * src/crcio.c (calccrc, fread_crc, fwrite_crc, fread_txt, fwrite_txt): suppress compiler warnings on gcc-4.0.
325
326         * src/header.c (calc_sum): ditto.
327
328         * src/lha_macro.h (UPDATE_CRC): ditto.
329
330 2005-09-24  Koji Arai  <jca02266@nifty.com>
331
332         * released.
333
334         * configure.ac: updated version and my mail address.
335
336         * Hacking_of_LHa: updated. (2003-02-23 edition)
337
338         * 00readme.autoconf: updated.
339
340 2005-06-08  Koji Arai  <jca02266@nifty.ne.jp>
341
342         * configure.ac: updated version.
343
344         * src/lharc.c (parse_suboption): fixed a bug, when the
345         --system-kanji-code option specified, the --archive-kanji-code
346         option was infected.
347
348 2005-05-08  Koji Arai  <jca02266@nifty.ne.jp>
349
350         * configure.ac: updated version.
351
352         * src/lharc.c (print_usage): updated.
353
354         * src/lhadd.c, src/header.c (remove_leading_dots): move to
355         header.c for readlink().
356
357         * src/lhadd.c (add_one): symbolic link indication was contrary.
358         ( not "realname -> linkname" but "linkname -> realname" )
359         (delete): ditto.
360
361         * src/lhext.c (extract_one): ditto.
362
363         * src/lhlist.c (list_one): ditto.
364
365         * tests/lha-test14: ditto.
366
367         * src/lhadd.c (remove_leading_dots): newly added.
368
369         * src/lhadd.c (append_it): remove leading relative path from
370         archive.
371
372         * src/lhext.c (is_directory_traversal): should return true when
373         just ".." was found.
374
375 2004-10-02  Koji Arai  <jca02266@nifty.ne.jp>
376
377         * src/lharc.c (print_tiny_usage): added long option helps.
378
379         * src/prototypes.h: updated.
380
381         * src/lharc.c: should accept a single option --help and --version.
382
383 2004-09-29  Koji Arai  <jca02266@nifty.ne.jp>
384
385         * src/lharc.c (parse_option, parse_suboption): use getopt_long().
386
387         * src/Makefile.am: added getopt_long.c and getopt_long.h.
388
389         * src/getopt_long.c, src/getopt_long.h: newly added.
390
391 2004-09-29  Koji Arai  <jca02266@nifty.ne.jp>
392
393         * released.
394
395         * 00readme.autoconf: note for builds on MS-Windows.
396
397         * configure.ac: updated version.
398
399         * Makefile.am: added Hacking_of_LHa in EXTRA_DIST.
400
401         * Hacking_of_LHa: renamed (typo).
402
403 2004-09-27  Koji Arai  <jca02266@nifty.ne.jp>
404
405         * configure.ac: updated version.
406
407         * src/prototypes.h (str_safe_copy): newly added.
408         (build_standard_archive_name, build_backup_file):
409         added argument the size for build_standard_archive_name() and
410         build_backup_file().
411
412         * src/header.c (init_header): use str_safe_copy() instead of strcpy().
413
414         * src/lhadd.c (build_backup_file, cmd_add, cmd_delete):
415         added argument the size for build_standard_archive_name() and
416         build_backup_file().
417
418         * src/lhext.c (make_parent_path): use str_safe_copy() instead of strcpy().
419         (extract_one): ditto.
420
421         * src/lharc.c (find_files): use str_safe_copy() instead of strcpy().
422         (build_temporary_name): ditto.
423         (modify_filename_extention): ditto.
424         (build_backup_name): ditto.
425         (build_standard_archive_name): ditto.
426
427         * src/util.c (str_safe_copy): newly added.
428
429 2004-09-26  Koji Arai  <jca02266@nifty.ne.jp>
430
431         * src/header.c: fixed typo.
432
433 2004-09-18  Koji Arai  <jca02266@nifty.ne.jp>
434
435         * configure.ac: updated version.
436
437         * 00readme.autoconf: added a description about
438         `--extract-broken-archive' option.
439
440         * src/lharc.c (init_variable, parse_option): added an option
441         `--extract-broken-archive' to extract broken archive.
442
443         * src/lha.h (extract_broken_archive): ditto.
444
445         * src/slide.c (encode, decode): fixed a *FATAL* bug which make a
446         broken archive.
447
448 2004-05-08  Koji Arai  <jca02266@nifty.ne.jp>
449
450         * configure.ac: updated version.
451
452         * src/prototypes.h: updated.
453
454         * src/lhext.c (extract_one, is_directory_traversal): applied a
455         security patch (CAN-2004-0235: directory traversal problems)
456
457         * src/lharc.c (print_usage): updated.
458
459 2003-12-18  Koji Arai  <jca02266@nifty.ne.jp>
460
461         * src/header.c (wintime_to_unix_stamp): no use 64bit constant to
462         avoid the warning `integer constant is too large for "long" type'
463         on GCC. however, for portability, no use the unsigned long long
464         suffix "ULL".
465
466 2003-12-13  Koji Arai  <jca02266@nifty.ne.jp>
467
468         * configure.ac: updated version.
469
470         * src/lhext.c (extract_one, cmd_extract): preserve directory
471         timestamp. Thanks Akihiro Iriyama.
472
473         * src/lhext.c (add_dirinfo, adjust_dirinfo): newly added.
474
475 2003-09-28  Koji Arai  <jca02266@nifty.ne.jp>
476
477         * Makefile.am (SUBDIRS): reordered to avoid useless re-compilation.
478
479 2003-09-21  Koji Arai  <jca02266@nifty.ne.jp>
480
481         * released.
482
483         * configure.ac: updated version.
484
485 2003-08-18  Koji Arai  <jca02266@nifty.ne.jp>
486
487         * 00readme.autoconf: fixed.
488
489         * configure.ac: use AC_SYS_LARGEFILE for largefile support.
490
491         * config.h.in: ditto.
492
493         * src/prototypes.h: updated.
494
495 2003-07-29  Koji Arai  <jca02266@nifty.ne.jp>
496
497         * tests/Makefile.am (EXTRA_DIST): lha-test1 was missed.
498
499         * tests/lha-test13: should set LANG=C for `tr'.
500
501 2003-07-28  Koji Arai  <jca02266@nifty.ne.jp>
502
503         * tests/lha-test.in: filename should be contained in last error
504         information.
505
506 2003-07-27  Koji Arai  <jca02266@nifty.ne.jp>
507
508         * tests/lha-test2: no need to set $FILENAME.
509         * tests/lha-test3: ditto.
510         * tests/lha-test4: ditto.
511         * tests/lha-test5: ditto.
512         * tests/lha-test6: ditto.
513         * tests/lha-test7: ditto.
514         * tests/lha-test8: ditto.
515         * tests/lha-test9: ditto.
516         * tests/lha-test10: ditto.
517         * tests/lha-test11: ditto.
518         * tests/lha-test12: ditto.
519         * tests/lha-test13: ditto.
520         * tests/lha-test14: ditto.
521         * tests/lha-test15: ditto.
522
523         * tests/lha-test1: newly added.
524
525         * tests/lha-test.in: improved.
526
527         * src/prototypes.h: updated.
528
529         * src/lha.h (exit): defined as lha_exit().
530
531         * src/lharc.c (init_variable): discard a variable
532         `remove_temporary_at_error'.
533         (fatal_error): ditto.
534         (cleanup): newly added.
535         (interrupt): call cleanup().
536         (lha_exit): newly added; cleanup temporary files always.
537
538         * src/lhadd.c (add_one): discard a variable
539         `remove_temporary_at_error'.
540
541         * src/indicator.c (start_indicator): refined.
542
543         * src/lharc.c (parse_option): fixed typo.
544
545         * src/indicator.c (carriage_return): newly added; print CR on tty only.
546         (start_indicator): call above.
547         (finish_indicator): ditto.
548         (finish_indicator2): ditto.
549
550         * src/lharc.c (print_usage): newly added.
551         (parse_option): strictly checking command line arguments.
552         (main): ditto.
553
554 2003-07-26  Koji Arai  <jca02266@nifty.ne.jp>
555
556         * tests/lha-test13: use `tr' instead of `printf` for printing 8 bit
557         characters.
558
559 2003-07-25  Koji Arai  <jca02266@nifty.ne.jp>
560
561         * tests/lha-test14: `test -e' is unavailable on some systems.
562
563 2003-07-22  Koji Arai  <jca02266@nifty.ne.jp>
564
565         * tests/lha-test.in: should exit with status in trap.
566
567         * src/shuf.c (decode_start_st0): wrong value was assigned.
568
569         * src/lha.h: discard `prof' variable.
570
571         * src/lharc.c (init_variable): discard `prof' variable.
572         (parse_option): discard undocumented `p' option.
573         (main): ditto.
574
575         * src/append.c (encode_lzhuf): hate global variable.
576
577         * src/extract.c (decode_lzhuf): ditto.
578
579         * src/lha.h: ditto.
580
581 2003-07-21  Koji Arai  <jca02266@nifty.ne.jp>
582
583         * configure.ac: updated version.
584
585         * 00readme.autoconf: described largefiles.
586
587         * src/header.c (get_header): avoid valgrind warning, `Source and
588         destination overlap in strncpy()'.
589
590         * src/lharc.c (find_files): refined.
591
592         * tests/lha-test.in: should exit in trap.
593
594         * src/lharc.c (find_files): uninitialized variable was caught by
595         Valgrind.
596
597         * src/prototypes.h: updated.
598
599         * src/append.c (encode_lzhuf): set actual copied size.
600
601         * src/util.c (encode_stored_crc): use size_t instead of long.
602
603         * src/lhadd.c (temporary_to_new_archive_file): ditto.
604         (cmd_add): ditto.
605         (cmd_delete): ditto.
606
607         * src/lhadd.c (add_one): fixed a comment.
608
609         * src/indicator.c (MAX_INDICATOR_COUNT): changed to fit for the 80
610         column screen.
611
612         * src/extract.c (decode_lzhuf): refined.
613
614         * src/prototypes.h: updated.
615
616         * src/cproto.sh: added `indicator.c'.
617
618         * src/Makefile.am: ditto.
619
620         * src/indicator.c: separated from append.c.
621
622         * src/append.c: ditto.
623
624         * src/lha.h: ditto.
625
626         * src/lha_macro.h: ditto.
627
628 2003-07-20  Koji Arai  <jca02266@nifty.ne.jp>
629
630         * configure.ac: updated version.
631
632         * src/Makefile.am (EXTRA_DIST): fnmatch.h was missed.
633
634         * src/lha.h (fseeko, ftello): these macros had no effect.
635
636 2003-07-19  Koji Arai  <jca02266@nifty.ne.jp>
637
638         * src/maketree.c (make_len): discard debug print.
639
640         * configure.ac: updated version.
641
642         * src/prototypes.h: updated.
643
644         * config.h.in: updated.
645
646         * configure.ac: check declaration of `basename'.
647
648         * src/cproto.sh: ditto.
649
650         * src/util.c (encode_stored_crc): use size_t.
651
652         * src/lha.h (struct LzHeader): use size_t for the members
653         `packed_size' and `original_size'.
654
655 2003-07-13  Koji Arai  <jca02266@nifty.ne.jp>
656
657         * configure.ac: updated version.
658
659         * src/prototypes.h: updated.
660
661         * src/append.c (encode_lzhuf): use size_t and off_t instead of long.
662         (start_indicator): ditto.
663
664         * src/extract.c (decode_lzhuf): ditto.
665
666         * src/lha.h (struct interfacing): ditto.
667
668         * src/lhadd.c (add_one): ditto.
669         (find_update_files): ditto.
670         (delete): ditto.
671
672         * src/lhext.c (cmd_extract): ditto.
673
674         * src/util.c (copyfile): ditto.
675
676         * src/lhlist.c (print_size): use "%7lu" format string instead of
677         "%7ld" for large files.
678
679         * src/slide.c: refined.
680
681 2003-07-11  Koji Arai  <jca02266@nifty.ne.jp>
682
683         * src/lharc.c (cleaning_files): should print errno.
684
685 2003-05-23  Koji Arai  <jca02266@nifty.ne.jp>
686
687         * configure.ac: use fseeko(), ftello() instead of fseek(), ftell().
688
689         * config.h.in: ditto.
690
691         * src/lha.h, src/lhlist.c, src/lhext.c, src/lharc.c: ditto.
692
693         * src/lhadd.c, src/header.c: ditto.
694
695 2003-05-10  Koji Arai  <jca02266@nifty.ne.jp>
696
697         * configure.ac: updated version.
698
699         * src/lhext.c (inquire_extract): warning if stdin is not tty,
700         because you cannot reply from stdin.
701         (extract_one): return actual read size from archive.
702         (cmd_extract): fix a bug: skip correct size when error occurred.
703
704         * tests/lha-test5: added tests for above.
705
706         * src/lha.h (struct interfacing): added a member `read_size'.
707
708         * src/extract.c (decode_lzhuf): added an argument `pointer of
709         read_size'.
710
711         * src/prototypes.h: ditto.
712
713         * src/slide.c (decode): set actual read size to interface->read_size.
714
715 2003-04-14  Koji Arai  <jca02266@nifty.ne.jp>
716
717         * src/cproto.sh: The cproto 4.7a supports some gcc-specific keywords.
718
719 2003-03-24  Koji Arai  <jca02266@nifty.ne.jp>
720
721         * configure.ac: updated version.
722
723         * src/prototypes.h: updated.
724
725 2003-03-23  Koji Arai  <jca02266@nifty.ne.jp>
726
727         * src/header.c (convert_filename): support Samba CAP code (experimental).
728         (hex2int, int2hex, cap_to_sjis, sjis_to_cap): added for above.
729
730         * src/lha_macro.h (CODE_CAP): ditto.
731
732         * src/lharc.c (parse_option): added new command line options,
733         --system-kanji-code=xxx and --archive-kanji-code=xxx (experimental).
734
735         * 00readme.autoconf: described above features.
736
737 2003-03-22  Koji Arai  <jca02266@nifty.ne.jp>
738
739         * src/lharc.c (init_variable): do not use HEADER_LEVELx macros.
740         (parse_option): ditto.
741
742         * src/header.c (write_header): ditto.
743
744         * src/lha_macro.h (HEADER_LEVEL0, HEADER_LEVEL1, HEADER_LEVEL2, MATCHBIT): ditto.
745
746         * src/huf.c (encode_start_st1): do not use assert().
747         (decode_start_st1): ditto.
748
749 2003-03-12  Koji Arai  <jca02266@nifty.ne.jp>
750
751         * src/header.c (wintime_to_unix_stamp): should cast to unsigned type.
752
753 2003-03-03  Koji Arai  <jca02266@nifty.ne.jp>
754
755         * src/prototypes.h: updated.
756
757         * src/cproto.sh: improved.
758
759 2003-02-24  Koji Arai  <jca02266@nifty.ne.jp>
760
761         * src/prototypes.h: updated.
762
763         * src/maketree.c: hate global variables.
764
765         * src/lha_macro.h: refined.
766
767         * src/huf.c: refined.
768
769         * src/util.c (strdup): defined more properly.
770         (memset): ditto.
771
772         * prototypes.h: ditto.
773
774         * cproto.sh: ditto.
775
776 2003-02-23  Koji Arai  <jca02266@nifty.ne.jp>
777
778         * src/cproto.sh: improved.
779
780         * src/prototypes.h: updated.
781
782         * src/util.c: `strucmp()' was replaced by `strcasecmp()'.
783
784         * src/util.c (archive_is_msdos_sfx1): ditto.
785
786         * src/lharc.c (open_old_archive): ditto.
787
788         * src/lha.h: ditto.
789
790         * src/util.c: discard `rename()', `mkdir()' and `rmdir()'.
791
792         * configure.ac: ditto.
793
794         * config.h.in: ditto.
795
796         * src/header.c: added credit.
797         no longer use `ftime()', `tzset()', `localtime()' and `gettimeofday()'.
798
799 2003-02-17  Koji Arai  <jca02266@nifty.ne.jp>
800
801         * configure.ac: updated version.
802
803         * src/fnmatch.h: no need to include <sys/cdefs.h>. it does not
804         exist on MinGW.
805
806 2003-02-14  Koji Arai  <jca02266@nifty.ne.jp>
807
808         * src/lharc.c (find_files): `goto' requires expression after label.
809
810         * src/lhadd.c (cmd_add): ditto.
811
812 2003-02-05  Koji Arai  <jca02266@nifty.ne.jp>
813
814         * tests/lha-test7: sleep 1 to make sure for updating tests.
815
816         * src/fnmatch.c, src/fnmatch.h: added fnmatch.c derived from the
817         OpenBSD.
818
819 2003-02-04  Koji Arai  <jca02266@nifty.ne.jp>
820
821         * configure.ac: need to call `AC_CANONICAL_HOST' for automake
822         1.6.x (for installing the config.guess and config.sub).
823
824 2003-02-02  Koji Arai  <jca02266@nifty.ne.jp>
825
826         * src/header.c, src/lharc.c: fix credit.
827
828 2003-01-20  Koji Arai  <jca02266@nifty.ne.jp>
829
830         * src/lha.h (prev_char): discard unused variable `prev_char'.
831
832         * src/crcio.c (fwrite_txt): ditto.
833
834         * src/slide.c (decode): ditto.
835
836         * src/slide.c: refined a little.
837
838 2003-01-19  Koji Arai  <jca02266@nifty.ne.jp>
839
840         * src/slide.c: took off the debug flag.
841
842         * src/slide.c (search_dict): split into 2 parts.
843
844         * src/slide.c: refined: use the structure `matchdata'.
845
846 2003-01-18  Koji Arai  <jca02266@nifty.ne.jp>
847
848         * src/lha.h (decode_count): rename a global variable `count' to
849         `decode_count'.
850
851         * src/dhuf.c (decode_p_dyn): ditto.
852
853         * src/slide.c (decode): ditto and refined.
854
855 2003-01-17  Koji Arai  <jca02266@nifty.ne.jp>
856
857         * src/slide.c: refined ?
858
859         * src/slide.c (INIT_HASH, NEXT_HASH): newly defined to refine.
860
861 2003-01-13  Koji Arai  <jca02266@nifty.ne.jp>
862
863         * src/prototypes.h: updated.
864
865         * src/slide.c: refined.
866
867 2002-12-31  Koji Arai  <jca02266@nifty.ne.jp>
868
869         * src/lhext.c (adjust_info): On Cygwin, execute permission should
870         be set for .exe or .dll.
871
872 2002-12-28  Koji Arai  <jca02266@nifty.ne.jp>
873
874         * src/lha_macro.h (peekbits): newly added.
875
876         * src/huf.c (read_pt_len): use peekbits().
877         (read_c_len): ditto.
878         (decode_c_st1): ditto.
879         (decode_p_st1): ditto.
880
881         * src/shuf.c (decode_c_st0): ditto.
882         (decode_p_st0): ditto.
883
884 2002-12-23  Koji Arai  <jca02266@nifty.ne.jp>
885
886         * configure.ac: added a configure option: --enable-ignore-dot-files.
887
888         * config.h.in: ditto.
889
890         * src/lharc.c (parse_option): added `-X' option to ignore dot files.
891
892 2002-12-17  Koji Arai  <jca02266@nifty.ne.jp>
893
894         * configure.ac: should check whether system has `ssize_t'.
895
896         * config.h.in: ditto.
897
898         * lha.h: ditto.
899
900         * configure.ac: added checking functions `fnmatch' and `basename'.
901         but not yet prepare the free fnmatch.c.
902
903         * config.h.in: ditto.
904
905         * src/util.c (basename): newly added.
906
907         * src/lhadd.c (cmd_add): exclude files specified by -x option.
908
909         * src/lharc.c (print_tiny_usage): refined.
910
911 2002-12-16  Koji Arai  <jca02266@nifty.ne.jp>
912
913         * 00readme.autoconf: describe about new feature `-x'.
914
915         * src/lha.h: include fnmatch.h.
916         added a global variable `exclude_files'.
917
918         * src/lharc.c (init_variable): initialize `exclude_files'.
919         (print_tiny_usage): modify usage.
920         (parse_option): newly added. should regard leading `-' argument as
921         option (for new -x option).
922         added `-x <pattern>' option (specify exclude files pattern).
923         (find_files): files matched by pattern `exclude_files' exclude
924         from target files.
925
926 2002-11-25  Koji Arai  <jca02266@nifty.ne.jp>
927
928         * src/header.c: use size_t for header_size.
929         (skip_msdos_sfx1_code): rename to `seek_lha_header()'.
930
931         * src/lha.h: use size_t for header_size.
932
933         * src/lhadd.c (cmd_add): rename `skip_msdos_sfx1_code()' to
934         `seek_lha_header()'.
935         (cmd_delete): ditto.
936
937         * src/lhext.c (cmd_extract): ditto.
938
939         * src/lhlist.c (cmd_list): ditto.
940
941         * src/prototypes.h: updated.
942
943         * tests/lha-test15: added tests to search any level headers.
944
945 2002-11-17  Koji Arai  <jca02266@nifty.ne.jp>
946
947         * untabify all sources.
948
949         * src/huf.c (encode_start_st1): refined.
950         (decode_start_st1): refined.
951
952         * src/slide.c (encode_alloc): refined.
953         (update): refined.
954
955 2002-11-15  Koji Arai  <jca02266@nifty.ne.jp>
956
957         * 00readme.autoconf: updated.
958
959         * src/prototypes.h: updated.
960
961         * configure.ac, Makefile.am, olddoc/Makefile.am:
962           old documentations moved to olddoc directory.
963
964         * CHANGES.euc, MACHINES2.euc, README.euc, change-114h.txt, change-114e.txt, change-114i.txt, IFNAMES, Makefile.in, change-114f.txt, config.eng, MACHINES.euc, PROBLEMS.euc, change-114g.txt, config.jpn.euc: ditto.
965
966         * Makefile.in.org, src/Makefile.in.org: removed.
967
968         * configure.ac: updated version (source maintenance start on
969         sourceforge.jp)
970
971 2002-11-11  Koji Arai  <jca02266@nifty.ne.jp>
972
973         * src/lhext.c (make_parent_path): On Cygwin, when `foo.exe'
974         exists, stat("foo", &buf) is successful and it is not a directory.
975
976         * src/util.c (skip_msdos_sfx1_code): move to header.c
977
978         * src/header.c (skip_msdos_sfx1_code): ditto.
979         some macro moved from lha_macro.h.
980
981         * src/lha_macro.h: ditto.
982
983         * tests/lha-test15: newly added for testing self extracting archive.
984
985         * tests/lha-test.in: ditto.
986
987         * tests/Makefile.am: ditto.
988
989         * configure.ac: refined messages.
990
991 2002-10-26  Koji Arai  <jca02266@nifty.ne.jp>
992
993         * src/bitio.c (putbits): use the function putcode().
994
995         * src/dhuf.c (decode_start_dyn): call init_code_cache().
996
997         * src/huf.c (encode_start_st1): ditto.
998         (decode_start_st1): ditto.
999
1000         * src/larc.c (decode_start_lzs): ditto.
1001
1002         * src/shuf.c (decode_start_st0): ditto.
1003         (encode_start_fix): ditto.
1004         (decode_start_fix): ditto.
1005
1006         * src/Makefile.am: added bitio.c
1007
1008         * src/cproto.sh: added bitio.c
1009
1010         * src/bitio.c: new file.
1011
1012         * src/crcio.c: extracted bitio routines.
1013
1014         * src/lha.h: ditto.
1015
1016 2002-10-16  Koji Arai  <jca02266@nifty.ne.jp>
1017
1018         * 00readme.autoconf: modified.
1019
1020 2002-10-02  Koji Arai  <jca02266@nifty.ne.jp>
1021
1022         * src/util.c (xstrchr): `strchr(s, 0)' should return the pointer
1023         of the '\0' terminator.
1024
1025 2002-09-14  Koji Arai  <jca02266@nifty.ne.jp>
1026
1027         * src/lhadd.c (add_one): Use chsize() if system does not have
1028         ftruncate(2). (For MinGW)
1029
1030         * configure.ac: ditto.
1031
1032         * config.h.in: ditto.
1033
1034 2002-09-03  Koji Arai  <jca02266@nifty.ne.jp>
1035
1036         * released.
1037
1038         * 00readme.autoconf: modified for stable release.
1039
1040         * configure.ac: updated version.
1041
1042 2002-09-01  Koji Arai  <jca02266@nifty.ne.jp>
1043
1044         * tests/Makefile.am (EXTRA_DIST): lha-test12, lha-test13 and
1045         lha-test14 were missed.
1046
1047 2002-08-31  Koji Arai  <jca02266@nifty.ne.jp>
1048
1049         * src/lhadd.c (append_it): refined.
1050
1051         * src/lhadd.c (append_it): no terminate when file cannot be opened.
1052
1053 2002-08-29  Koji Arai  <jca02266@nifty.ne.jp>
1054
1055         * tests/lha-test11: change the way of checking the `header size field'.
1056
1057         * configure.ac: the `--enable-user-name-header' switch has been
1058         ineffective. corrected variable name.
1059
1060 2002-08-26  Koji Arai  <jca02266@nifty.ne.jp>
1061
1062         * tests/lha-test14: on Cygwin, cannot use '|' as filesname.
1063
1064         * tests/lha-test.in: on MinGW, skip lha-test14 test.
1065
1066         * 00readme.autoconf: modified.
1067
1068         * released.
1069
1070         * configure.ac: updated version.
1071
1072         * src/header.c: fixed a comment.
1073
1074         * src/prototypes.h (strcmp_filename): removed.
1075
1076         * src/header.c (dump_skip_bytes): note "ignored" if data is ignored.
1077
1078         * src/header.c (wintime_to_unix_stamp): newly added for converting
1079         from `FILETIME' to `time_t'.
1080         (get_extended_header): use `wintime_to_unix_stamp()' to recognize
1081         the Windows time stamp header (0x41).
1082
1083         * src/lha.h: define `uint64_t' unless system has it.
1084
1085         * configure.ac: check existence of the type `uint64_t'.
1086
1087         * config.h.in: ditto.
1088
1089         * src/lharc.c (init_variable): set default header level to 2.
1090
1091 2002-08-24  Koji Arai  <jca02266@nifty.ne.jp>
1092
1093         * tests/lha-test.in (lha-test14): added to test the symbolic link file.
1094
1095         * tests/lha-test14: ditto.
1096
1097         * src/lhlist.c (list_one): use LzHeader.realname.
1098
1099         * src/lhext.c (extract_one): use LzHeader.realname.
1100         should call make_parent_path(symlink).
1101
1102         * src/lhadd.c (add_one): use LzHeader.realname.
1103         (delete): ditto.
1104         (append_it): use strcmp() instead of strcmp_filename().
1105         (strcmp_filename): removed.
1106
1107         * src/lha.h (struct LzHeader): added a member `realname' which is
1108         symbolic linked name.
1109
1110         * src/header.c (get_header): split symbolic name in archive.
1111         (write_header): join symbolic link name and linked name to put it
1112         in archive.
1113
1114         * src/lhext.c (extract_one): force extract when `f' option is
1115         specified. this is for OS-9 archives, [provisional].
1116
1117         * src/header.c: fixed cpp expressions around time functions.
1118
1119         * tests/lha-test8: test MS-DOS timestamp `ftime' structure.
1120
1121         * tests/lha-test.in (change_timestamp): newly added.
1122
1123 2002-08-22  Koji Arai  <jca02266@nifty.ne.jp>
1124
1125         * released.
1126
1127         * src/prototypes.h: regenerated.
1128
1129         * src/cproto.sh: refined.
1130
1131         * configure.ac: updated version.
1132
1133         * configure.ac: should use `exit' rather than `return' on
1134         AC_TRY_RUN().  see the Autoconf manual.
1135
1136         * configure.ac: check whether the 2nd argument of gettimeofday()
1137         is effective.
1138
1139         * src/header.c: ditto.
1140
1141         * config.h.in (GETTIMEOFDAY_HAS_2ND_ARG): ditto.
1142
1143         * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX
1144         shell, Ksh and Bash version 2.03 or earlier.
1145
1146         * tests/lha-test13: ditto.
1147
1148 2002-08-18  Koji Arai  <jca02266@nifty.ne.jp>
1149
1150         * src/lharc.c (print_version): version string is made here.
1151
1152         * src/lha_macro.h (LHA_VERSION): removed.
1153
1154         * src/slide.c (encode_alloc): used newly named `dicbit' macro.
1155
1156         * src/shuf.c (read_tree_p): ditto.
1157         (decode_start_fix): ditto.
1158
1159         * src/lha_macro.h: `xxx_DICBIT' for each method was defined.
1160
1161         * src/header.c: correct a comment `Generic stamp format'.
1162         (get_bytes): fixed for dumping header.
1163
1164         * src/lha_macro.h, src/lha.h: `EXTERN' macro definition was moved
1165         to lha.h.
1166
1167         * src/header.c (get_bytes): print hex codes for invisible chars.
1168
1169         * src/lhlist.c: hate global variables.
1170
1171         * src/prototypes.h (convdelim): removed.
1172
1173         * src/lhlist.c (print_stamp): use ISO 8601 date format when `lha vv'.
1174
1175 2002-08-14  Koji Arai  <jca02266@nifty.ne.jp>
1176
1177         * src/header.c: discarded warning message for the extended header,
1178         `Windows time stamp' ignored.
1179
1180         * src/header.c: in spite of extended type value, read contents of
1181         any ext headers.
1182
1183         * src/header.c: comment fixed.
1184
1185 2002-08-12  Koji Arai  <jca02266@nifty.ne.jp>
1186
1187         * src/header.c (dump_skip_bytes): do nothing when length is 0.
1188
1189 2002-08-11  Koji Arai  <jca02266@nifty.ne.jp>
1190
1191         * src/lha_macro.h (SJC_FIRST_P): rename to SJIS_FIRST_P.
1192         (SJC_SECOND_P): rename to SJIS_SECOND_P.
1193
1194         * src/util.c (convdelim): removed.
1195
1196         * src/header.c (convert_filename): when small letter is included
1197         in filename, do not convert case.
1198
1199         * tests/lha-test.in, tests/lha-test2, tests/lha-test3, tests/lha-test4, tests/lha-test5, tests/lha-test6, tests/lha-test7, tests/lha-test8, tests/lha-test9, tests/lha-test10, tests/lha-test11, tests/lha-test12, tests/lha-test13:
1200         print filename when test failed.
1201
1202         * tests/lha-test.in, tests/lha-test12, tests/lha-test13:
1203         added tests for converting text files.
1204
1205         * src/header.c (get_extended_header): recognize the Windows time
1206         stamp header (0x41), but ignored.
1207
1208         * src/header.c (write_unix_info): added.
1209
1210 2002-08-11  Koji Arai  <jca02266@nifty.ne.jp>
1211
1212         * released.
1213
1214         * configure.ac: updated version.
1215
1216         * 00readme.autoconf: modified.
1217
1218         * src/header.c: DUMP_HEADER is always true.
1219         dump header when running `lha vvv foo.lzh'.
1220         (get_header): added new extend type JAVA.
1221
1222         * src/lha_macro.h (EXTEND_JAVA): added new extend type JAVA.
1223
1224         * src/lhlist.c (list_one): ditto.
1225
1226         * src/lharc.c (init_variable): `verbose' is changed to successive.
1227         (main): ditto.
1228
1229 2002-08-10  Koji Arai  <jca02266@nifty.ne.jp>
1230
1231         * src/lhlist.c (list_one): fixed mode checks.
1232
1233         * src/prototypes.h: updated.
1234
1235         * src/header.c (get_header_level2): check CRC value for reading
1236         level 2 and 3 header.
1237         (get_header_level3): ditto.
1238         (get_extended_header): ditto.
1239         (get_header_level0): set total header size to
1240         `LzHeader.header_size' even if level 0 or 1 header is read.
1241         (get_header_level1): ditto.
1242
1243         * src/append.c (encode_lzhuf): encode(), decode() and copyfile()
1244         were changed.
1245         (put_indicator): moved from crcio.c.
1246
1247         * src/crcio.c (put_indicator): moved to append.c.
1248         (calccrc): generalized.
1249         (fread_crc): changed interface.
1250         (fwrite_crc): changed interface.
1251         (calc_header_crc): removed. use calccrc() instead.
1252
1253         * src/extract.c (decode_lzhuf): copyfile() and decode() were changed.
1254
1255         * src/lha.h: hate global variable. `crc' is removed.
1256         `reading_size' moved to append.c.
1257
1258         * src/lha_macro.h (INITIALIZE_CRC): newly added.
1259         (UPDATE_CRC): no update in macro code.
1260
1261         * src/lhadd.c (temporary_to_new_archive_file): copyfile() was changed.
1262
1263         * src/lharc.c (copy_old_one): header size adjusting is done by
1264         the get_header().
1265
1266         * src/slide.c (update): changed interface.
1267         (get_next): ditto.
1268         (encode): ditto.
1269         (decode): ditto.
1270
1271         * src/util.c (copyfile): changed interface.
1272
1273 2002-08-10  Koji Arai  <jca02266@nifty.ne.jp>
1274
1275         * tests/lha-test5: added tests using pipe.
1276
1277         * src/lhadd.c (cmd_add): applied reverse patch.  intermediate file
1278         is the necessary when created archive put in pipe.
1279
1280         * src/header.c (skip_bytes): newly added.
1281         (dump_get_byte): newly added for dumping the data for debugging.
1282         (dump_skip_bytes): ditto.
1283         (get_word): ditto.
1284         (get_longword): ditto.
1285         (get_bytes): ditto.
1286         (get_extended_header): modified for reading the level 3 header.
1287         (get_header_level3): newly added.
1288
1289         * src/lha.h (struct LzHeader): for level 3 header, added a new
1290         member `size_field_length' and changed type of the `header_size'
1291         from int to long.
1292
1293         * src/header.c (init_header): the `hdr->method' should be
1294         initialized to the "-lh0-" for empty files.
1295
1296         * tests/lha-test2: ditto.
1297
1298         * src/lhadd.c (add_one): should print indicator for empty files.
1299
1300 2002-08-09  Koji Arai  <jca02266@nifty.ne.jp>
1301
1302         * tests/lha-test.in: adapt to ksh (and posix shell).
1303
1304 2002-08-05  Koji Arai  <jca02266@nifty.ne.jp>
1305
1306         * 00readme.autoconf: refined.
1307
1308         * config.h.in (BACKUP_OLD_ARCHIVE): added.
1309
1310         * configure.ac: added a command line switch `--enable-backup-archive'.
1311
1312         * src/lhadd.c (cmd_add): if `backup_old_archive' is true, no
1313         backup archive.
1314         (cmd_delete): ditto.
1315
1316         * src/lharc.c (init_variable): initialize `backup_old_archive'.
1317
1318         * src/lha.h (backup_old_archive): added for nobackup.
1319
1320 2002-08-02  Koji Arai  <jca02266@nifty.ne.jp>
1321
1322         * src/lha_macro.h, src/lha.h, src/header.c, src/lhadd.c: Fixed
1323         misspelling, not `STRAGE' but `STORAGE'.
1324
1325 2002-07-29  Koji Arai  <jca02266@nifty.ne.jp>
1326
1327         * re-released.
1328
1329         * src/header.c: should use error() instead of fatal_error().
1330         (get_header): fixed wrong end mark checking.
1331
1332         * src/prototypes.h: updated.
1333
1334         * released.
1335
1336         * configure.ac: updated version.
1337
1338         * 00readme.autoconf: described about header.c bug on original lha.
1339
1340 2002-07-28  Koji Arai  <jca02266@nifty.ne.jp>
1341
1342         * tests/Makefile.am: added lha-test11.
1343
1344         * src/crcio.c (fread_txt): responded to (gcc -Wall) compiler warnings.
1345
1346         * src/header.c (generic_to_unix_stamp): ditto.
1347
1348         * src/lha_macro.h: ditto.
1349
1350         * src/lhadd.c (delete): ditto.
1351
1352         * src/lharc.c (open_old_archive): ditto.
1353
1354         * src/lhlist.c (list_one): ditto.
1355
1356         * src/prototypes.h: updated.
1357
1358         * tests/lha-test.in: added lha-test11.
1359
1360         * tests/lha-test8: added tests for level 0 and 2 header.
1361
1362         * tests/lha-test10: added tests for generic header.
1363
1364         * tests/lha-test11: testing for long filename. moved from lha-test10.
1365
1366 2002-07-26  Koji Arai  <jca02266@nifty.ne.jp>
1367
1368         * src/header.c (write_header): rewritten.
1369
1370 2002-07-25  Koji Arai  <jca02266@nifty.ne.jp>
1371
1372         * tests/lha-test4: stderr should be redirected.
1373
1374         * src/lharc.c (main): exit with status 1 (meaning failure) when the
1375         function error() was called.
1376         (error): ditto.
1377
1378         * src/lha.h (LzHeader.last_modified_stamp;): no longer used it.
1379
1380         * src/header.c (get_header): rewritten.
1381
1382 2002-07-21  Koji Arai  <jca02266@nifty.ne.jp>
1383
1384         * tests/lha-test10: change grep pattern so that pattern matches
1385         a carriage return at the end of line for MinGW.
1386
1387         * src/lha.h: define `struct utimbuf' when utime.h is not given
1388         such as MinGW. (Microsoft Visual Studio 6.0 has sys/utime.h).
1389
1390         * src/lhext.c (make_parent_path): missing braces.
1391
1392         * tests/lha-test.in (check): print script line number when test failed.
1393
1394         * tests/lha-test2, tests/lha-test3, tests/lha-test4, tests/lha-test5, tests/lha-test6, tests/lha-test7, tests/lha-test8, tests/lha-test9, tests/lha-test10: ditto.
1395
1396         * tests/lha-test10: on Cygwin/MinGW, could not make 255 bytes
1397         filename. (the system limit of filename length contains the length
1398         of current directory.)
1399
1400         * tests/lha-test10: should use /bin/ls instead of ls, since
1401         /usr/ucb/ls puts size on 4th field (on Solaris).
1402
1403 2002-07-18  Koji Arai  <jca02266@nifty.ne.jp>
1404
1405         * released.
1406
1407         * configure.ac: updated version.
1408
1409         * src/lhext.c (adjust_info): should use `struct utimbuf' for
1410         `utime(2)' rather than `time_t' array.
1411
1412         * src/header.c (write_header): [BUG]: should not write zero at the
1413         first byte on level 2 header. should adjust header size.
1414
1415         * tests/lha-test10: added tests for level 2 header.
1416
1417         * src/lha_macro.h, src/header.c (setup_get): moved to header.c.
1418         (get_byte): ditto.
1419         (put_ptr): ditto.
1420         (setup_put): ditto.
1421         (put_byte): ditto.
1422         (get_bytes): newly added.
1423         (put_bytes): newly added.
1424
1425 2002-07-17  Koji Arai  <jca02266@nifty.ne.jp>
1426
1427         * src/header.c (get_header): [BUG]: Could not read level 2 header
1428         when the header size is grater than 256.
1429         (convert_filename): Should use the `FILENAME_LENGTH' macro rather
1430         than 256.
1431         (write_header): [BUG]: Suppress to overflow the header size when
1432         long filename is written in level 0 or 1 header. On level 1
1433         header, always use the extended filename header instead of the
1434         base header.
1435
1436         * src/lha.h (LzHeader): the type of `header_size' was changed
1437         from `unsigned char' to `int', for the level 2 header archive.
1438
1439         * src/lhext.c (extract_one): should use the `FILENAME_LENGTH'
1440         macro rather than 256 (provisionally fixed).
1441
1442         * tests/lha-test.in: notify failed test number.
1443
1444         * tests/lha-test10: added tests for long pathname.
1445
1446 2002-07-14  Koji Arai  <jca02266@nifty.ne.jp>
1447
1448         * re-released.
1449
1450         * src/header.c (get_header): archive path separator should be
1451         converted always.
1452
1453         * released.
1454
1455         * configure.ac: updated version.
1456
1457         * src/header.c (write_header): if user/group name is not set,
1458         extended header (0x52 and 0x53) should not be made.
1459
1460         * tests/lha-test10: added testing to handle deep directory.
1461
1462         * src/header.c (write_header): fixed typo, not strchr() but
1463         strrchr().
1464
1465         * src/prototypes.h: regenerated.
1466
1467         * src/header.c (convert_filename): prefer to use the
1468         `FILENAME_LENGTH' macro rather than 256.
1469
1470         * src/cproto.sh: fixed typo.
1471
1472 2002-07-11  Koji Arai  <jca02266@nifty.ne.jp>
1473
1474         * tests/Makefile.am (EXTRA_DIST): lha-test9 and lha-test10 were missed.
1475
1476         * src/lharc.c (print_tiny_usage): no exit here.
1477
1478         * src/header.c (ConvertEncodingByIconv): newly added.
1479         Thanks to Hiroto Sakai.
1480
1481         * configure.ac, config.h.in: Checking to have iconv() for utf-8
1482         conversion.
1483
1484         * configure.ac: Checking whether strrchr() is 8 bit clean or not.
1485         On Mac OS X, strchr() can handle 8 bit characters, but strrchr()
1486         cannot.
1487         Should use '\377' rather than '\xff' for de-ANSI compiler.
1488
1489 2002-07-10  Koji Arai  <jca02266@nifty.ne.jp>
1490
1491         * released.
1492
1493         * configure.ac: updated version.
1494
1495         * src/header.c: change hex codes '\xff' to octal codes '\377'.
1496
1497         * tests/lha-test.in: Skip the lha-test9. (this test is imcomplete
1498         for now)
1499
1500         * tests/lha-test10: Should extract directory even if the archive
1501         header was level 0.
1502
1503         * src/header.c (get_header): Should convert kanji code and path
1504         separator for the level 0 header entry.
1505         Should convert `\' to `/' for level 0 header (do always to make sure,
1506         SO CANNOT CONTAIN THE `\' IN FILENAME).
1507         (init_header): [BUG]: Should not convert path separator here (Should do
1508         in write_header()).
1509         (write_header): [BUG]: should set pathname (contains directory part) to
1510         the LzHeader.name field on level 0 header archive even if the
1511         archive methods is -lhd-.
1512
1513 2002-07-09  Koji Arai  <jca02266@nifty.ne.jp>
1514
1515         * src/lha.h, src/header.c: the CoreFoundation header inclusion
1516         moved to header.c.
1517
1518         * src/lha.h, src/lharc.c, IFNAMES: macro NODIRECTORY was removed.
1519
1520         * src/lha.h, src/lhadd.c, src/lharc.c, src/lhext.c: fixed
1521         misspelling, not `writting' but `writing'.
1522
1523 2002-07-07  Koji Arai  <jca02266@nifty.ne.jp>
1524
1525         * src/lha.h, src/lha_macro.h: refined.
1526
1527         * src/lhadd.c (append_it): macro STRING_COMPARE() was discarded.
1528
1529         * src/lha_macro.h: ditto.
1530
1531         * IFNAMES: NOVOID was removed.
1532
1533         * src/lharc.c (main): terminate with exit status 2 when specified
1534         command line switche is wrong,
1535
1536         * configure.ac, config.h.in: added checking utime.h existent.
1537
1538         * src/crcio.c (putc_euc): void returned.
1539
1540         * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c: refined.
1541
1542         * src/lharc.c, src/prototypes.h, src/slide.c: refined.
1543
1544         * configure.ac: should specify the 4th argument to AC_TRY_RUN()
1545         for cross compiling.
1546
1547         * configure.ac: fix a test expression.
1548
1549         * src/cproto.sh: added for maintainer.
1550
1551         * src/lha.h: support de-ANSI variable arguments.
1552
1553         * src/lharc.c: ditto.
1554
1555         * src/util.c: ditto.
1556
1557         * src/Makefile.am (lha_SOURCES): added prototypes.h.
1558
1559         * src/lha.h: function prototypes moved to prototypes.h.
1560
1561         * src/prototypes.h: generated by the cproto command.
1562
1563         * configure.ac: On Mac OS X, in spite of using the CoreFoundation
1564         for utf-8 conversion, I have missed specifying the `-framework
1565         CoreFoundation' in LDFLAGS.
1566
1567         * src/Makefile.am (EXTRA_DIST): no need to specify `lhdir.c'.
1568
1569 2002-07-06  Koji Arai  <jca02266@nifty.ne.jp>
1570
1571         * released.
1572
1573         * configure.ac: updated version.
1574
1575         * tests/lha-test10: added testing the header level 0, 1 and 2.
1576
1577         * tests/lha-test.in: ditto.
1578
1579         * src/lharc.c: `#include <stdarg.h>' moved to lha.h.
1580
1581         * src/lha.h: ditto.
1582
1583         * src/util.c: ditto.
1584
1585         * configure.ac: AC_REPLACE_FUNCS(vsnprintf).
1586
1587         * config.h.in: ditto.
1588
1589         * src/lha.h: ditto.
1590
1591         * src/vsnprintf.c: derived snprintf() which has the BSD licence.
1592
1593         * configure.ac: fix typo.
1594
1595         * configure.ac: checking whether strchr() is 8 bit clean or not.
1596
1597         * config.h.in: ditto.
1598
1599         * src/util.c: give functions strchr(), strrchr(), memchr() and
1600         memrchr() which handle 8 bit characters correctly.
1601
1602         * src/header.c: use above if needed.
1603
1604         * src/lha_macro.h: deprecate the macro name `DELIM2' which is path
1605         separattor for the filename in lha header.
1606         use LHA_PATHSEP instead.
1607
1608         * src/util.c (convdelim): ditto.
1609
1610         * src/header.c (convert_filename): ditto.
1611         (write_header): ditto.
1612
1613         * src/header.c (convert_filename): fixed bug on utf8 conversion,
1614         provisionally.
1615
1616 2002-06-30  Koji Arai  <jca02266@nifty.ne.jp>
1617
1618         * configure.ac: fixed typo.
1619
1620         * src/header.c (sjis_to_utf8): fixed typo.
1621         (utf8_to_sjis): fixed typo.
1622
1623         * src/lhadd.c (cmd_add): Missed to adjust the index when specified
1624         adding file is same as the generating archive file.
1625
1626 2002-06-29  Koji Arai  <jca02266@nifty.ne.jp>
1627
1628         * src/header.c (convert_filename): rename a function
1629         `filename_conv()' to `convert_filename()'.
1630         (sjis_to_utf8_static): no use the static variable.
1631         (utf8_to_sjis_static): ditto.
1632
1633         * src/lha.h: rename sjis_to_utf8_static() and utf8_to_sjis_static()
1634         into sjis_to_utf8() and utf8_to_sjis().
1635
1636         * src/lha_macro.h: added a macro `CODE_UTF8'.
1637
1638         * configure.ac: decide CODE_UTF8.
1639         updated version.
1640
1641         * 00readme.autoconf: modified.
1642
1643         * configure.ac: modified for Mac OS X.
1644
1645         * src/header.c, lha.h, lha_macro.h, lharc.c: Merged a patch for
1646         the Mac OS X, convert utf-8 filename to shift_jis. This patch was
1647         contributed on LHa BBS. Thanks to Hiroto Sakai.
1648
1649         * src/lhext.c: replaced bcmp() with memcmp().
1650
1651         * src/lha_macro.h: ditto.
1652
1653         * src/append.c: replace bcopy() with memcpy() or memmove().
1654
1655         * src/lha_macro.h: ditto.
1656
1657         * src/lhadd.c: ditto.
1658
1659         * src/lharc.c: ditto.
1660
1661         * src/header.c: ditto.
1662         replace bzero() with memset().
1663
1664         * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
1665         the LHa BBS [28])
1666
1667         * src/slide.c (encode_alloc): Wrong value was assigned to the
1668         `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN,
1669         reported on the LHa BBS [38]).
1670
1671         * src/lha_macro.h: ditto.
1672
1673         * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
1674         fixed by DANGAN (reported on the LHa BBS [35]).
1675
1676         * src/lha_macro.h (LH3_DICBIT): ditto.
1677
1678         * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was
1679         refined by DANGAN (reported on the LHa BBS [30], [39], [62]).
1680
1681 2002-06-26  Koji Arai  <jca02266@nifty.ne.jp>
1682
1683         * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
1684
1685         * tests/lha-test3: Rewrite tests for generic format archives.
1686
1687         * tests/lha-test2: Added tests for -lh0- method.
1688         Moved from contents of lha-test3 (tests for print archive).
1689
1690 2002-06-23  Koji Arai  <jca02266@nifty.ne.jp>
1691
1692         * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
1693
1694         * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
1695           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1696
1697         * src/lharc.c: ditto.
1698
1699         * src/slide.c (interface;): Fixed wrong index.
1700           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1701
1702         * 00readme.autoconf: refined.
1703
1704         * tests/lha-test9: added tests for overriding files.
1705
1706         * tests/lha-test.in: added test9.
1707
1708         * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
1709         re-fixed provisionaly.
1710
1711         * src/lhext.c (cmd_extract): When error occurred in extract_one(),
1712         should adjust point of file stream.
1713
1714         * configure.ac: library checkings (for libmingwex) should be done
1715         before header checkings.
1716
1717 2002-06-22  Koji Arai  <jca02266@nifty.ne.jp>
1718
1719         * released:
1720
1721         * configure.ac: updated version.
1722
1723         * src/lharc.c (init_variable): Removed useless assignments.
1724
1725         * src/lharc.c (main): Behavior was changed. when `q' or `q2' option
1726         (not `q1') is specified, the `f' option is enabled implicitly.
1727         In original behavior, the option `q', `q0', `q1' and `q2' will
1728         enable `f' option implicitly (bug?).
1729
1730         * src/lharc.c (main): [BUG]: When `q2' option is specified,
1731         level 2 header is generated.
1732
1733 2002-06-21  Koji Arai  <jca02266@nifty.ne.jp>
1734
1735         * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
1736
1737         * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
1738
1739         * tests/lha-test.in: All tests are splited into some files.
1740
1741         * tests/Makefile.am: ditto.
1742
1743         * tests/lha-test2: ditto.
1744
1745         * tests/lha-test3: ditto.
1746
1747         * tests/lha-test4: ditto.
1748
1749         * tests/lha-test5: ditto.
1750
1751         * tests/lha-test6: ditto.
1752
1753         * tests/lha-test7: ditto.
1754
1755         * tests/lha-test8: ditto.
1756
1757 2002-06-20  Koji Arai  <jca02266@nifty.ne.jp>
1758
1759         * src/lhadd.c (cmd_add): No create an intermediate file when archive
1760         is written in stdout.
1761
1762 2002-06-19  Koji Arai  <jca02266@nifty.ne.jp>
1763
1764         * 00readme.autoconf: Modified.
1765
1766 2002-06-18  Koji Arai  <jca02266@nifty.ne.jp>
1767
1768         * configure.in: Removed. (no support the Autoconf version 2.13).
1769
1770         * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
1771
1772         * src/header.c: Remove preprocess codes for kanji code decision.
1773
1774         * configure.ac: When --enable-multibyte-filename[=auto] is specified,
1775         decide kanji code for filename automatically.
1776         Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS.
1777
1778 2002-06-17  Koji Arai  <jca02266@nifty.ne.jp>
1779
1780         * configure.in, configure.ac: updated version.
1781
1782         * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir()
1783         has moved to libmingwex.a. For now, not listed in the
1784         /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file.
1785
1786         * src/lharc.c (message): use variable argument list with stdarg.
1787         (warning): ditto.
1788         (error): ditto.
1789         (write_error): removed.
1790         (read_error): removed.
1791         (build_temporary_name): use xsnprintf().
1792         (open_old_archive): ditto.
1793         (expanded_archive_name): move in the function (open_old_archive()) as static.
1794
1795         * src/crcio.c (putcode): changed for fatal_error().
1796         (putbits): changed for fatal_error().
1797         (fwrite_crc): ditto.
1798         (putc_euc): should return EOF when putc() cause error.
1799         (fwrite_txt): changed for putc_euc().
1800
1801         * src/header.c (get_header): changed for fatal_error(), warning() and error().
1802         (init_header): use xsnprintf().
1803         (write_header): fixed wrong usage of fwrite().
1804
1805         * src/lha.h: updated declarations.
1806
1807         * src/lhadd.c (append_it): changed for error().
1808
1809         * src/lhext.c (inquire_extract): ditto.
1810
1811         * src/lhlist.c (cmd_list): ditto.
1812
1813         * src/maketbl.c (make_table): ditto.
1814
1815         * src/util.c (copyfile): changed for fatal_error().
1816         (xsnprintf): newly added to adopt to various snprintf().
1817
1818 2002-06-12  Koji Arai  <jca02266@nifty.ne.jp>
1819
1820         * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
1821
1822         * src/lhlist.c (list_one): ditto.
1823
1824 2002-06-11  Koji Arai  <jca02266@nifty.ne.jp>
1825
1826         * src/lharc.c: index was wrong.
1827           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
1828
1829 2002-06-06  Koji Arai  <jca02266@nifty.ne.jp>
1830
1831         * configure.ac, configure.in: changed macro name.
1832         not multibyte-char but multibyte-filename.
1833         not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
1834
1835         * 00readme.autoconf: ditto.
1836
1837         * config.h.in: ditto.
1838
1839         * src/util.c: ditto.
1840
1841         * src/lha_macro.h: ditto.
1842
1843         * src/header.c: ditto.
1844
1845         * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
1846
1847         * configure.ac: ditto.
1848
1849         * src/header.c (init_header): ditto.
1850
1851         * src/header.c (init_header): should clear LzHeader.
1852
1853 2002-06-05  Koji Arai  <jca02266@nifty.ne.jp>
1854
1855         * released.
1856
1857         * configure.ac (AC_INIT): changed package name and specified tar name.
1858
1859         * src/lharc.c: added `--help' command line switch.
1860
1861         * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
1862
1863         * README.autoconf, 00readme.autoconf: renamed.
1864
1865         * configure.ac, configure.in: updated version.
1866
1867 2002-06-04  Koji Arai  <jca02266@nifty.ne.jp>
1868
1869         * README.autoconf, header.doc.euc: describe about user/group name
1870         header.
1871
1872         * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
1873
1874         * configure.ac, configure.in, config.h.in: added a switch
1875         `--enable-user-name-header' whether user/name extended header is
1876         made.
1877
1878 2002-06-01  Koji Arai  <jca02266@nifty.ne.jp>
1879
1880         * README.autoconf: `-i' switch of automake is deprecated.
1881
1882 2002-05-29  Koji Arai  <jca02266@nifty.ne.jp>
1883
1884         * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
1885
1886         * src/lha.h: define uid_t/gid_t as `int' if no have it.
1887
1888         * src/lhext.c (adjust_info): mismatched braces.
1889
1890         * header.doc.euc: around user/group name extention.
1891
1892         * configure.in, configure.ac, config.h.in: checks having
1893         getpwuid/getgrgid and so on.
1894
1895         * src/header.c (get_header): use the extend header, user/group name.
1896         (init_header): ditto.
1897
1898         * src/lha.h: added <pwd.h>, <grp.h> header includings.
1899
1900         * src/lhext.c (adjust_info): change owner/group according to
1901         user/group name when extracting.
1902
1903         * src/lhlist.c (list_one): print user/group name when the header
1904         has them.
1905         (list_one): correct column position on OS68K.
1906
1907         * tests/lha-test.in: added timestamp checks.
1908
1909         * src/lha_macro.h: comment about OS code.
1910
1911 2002-05-28  Koji Arai  <jca02266@nifty.ne.jp>
1912
1913         * src/lharc.c (xstrdup): no need to call fatal_error().
1914
1915         * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
1916
1917         * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
1918
1919         * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
1920         new macro name to adopt to the AC_CHECK_MEMBERS().
1921
1922 2002-05-27  Koji Arai  <jca02266@nifty.ne.jp>
1923
1924         * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
1925
1926         * src/header.c (filename_conv): fix a bug, reverse condition and
1927         conversion for filename case.
1928
1929         * README.autoconf: added description about `get_filename_from_stdin' feature.
1930
1931         * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
1932
1933         * src/lharc.c (main): never set `get_filename_from_stdin` to true.
1934         `echo foo | lha x foo.lzh' does not work like original LHa for UNIX.
1935
1936         * tests/lha-test.in: replace with #!/bin/bash.
1937
1938         * README.autoconf: added E-Mail address.
1939
1940         * configure.ac: updated version and added mail address for bug reports.
1941
1942         * configure.in: updated version.
1943
1944         * released.
1945
1946         * README.autoconf: added `make check' on sample description.
1947
1948         * configure.in, configure.ac: update version.
1949
1950 2002-05-26  Koji Arai  <jca02266@nifty.ne.jp>
1951
1952         * tests/lha-test.in: added some tests.
1953
1954         * tests/Makefile.am: refined.
1955
1956         * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
1957
1958         * tests/lha-test.in: added some tests.
1959
1960         * tests/lha-test.in: specified `q' option on print archive test.
1961
1962         * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
1963         a new file already exists.
1964
1965         * src/lhext.c (extract_one): On MinGW, set binary on stdout when
1966         print archive (`p' switch).
1967
1968         * tests/lha-test.in: added some tests.
1969
1970         * src/lhadd.c (report_archive_name_if_different): warning messages
1971         should be printed to stderr rather than stdout.
1972         (cmd_delete): ditto.
1973
1974         * tests/Makefile.am: fix EXTRA_DIST.
1975
1976         * configure.in, configure.ac: update version.
1977
1978         * tests/lha-test.in: added tests.
1979
1980         * tests/Makefile.am: ditto.
1981
1982         * configure.in, configure.ac, Makefile.am: ditto.
1983
1984 2002-05-25  Koji Arai  <jca02266@nifty.ne.jp>
1985
1986         * IFNAMES: updated.
1987
1988         * released.
1989
1990         * README.autoconf: added description for developpers.
1991
1992         * configure.in, configure.ac, config.h.in: refined.
1993
1994         * src/util.c (memmove): use HAVE_MEMMOVE.
1995         (mkdir): use HAVE_WORKING_FORK.
1996
1997         * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
1998
1999         * IFNAMES (sony_news): updated.
2000
2001         * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
2002         see `lha --version'.
2003
2004 2002-05-22  Koji Arai  <jca02266@nifty.ne.jp>
2005
2006         * src/append.c, src/crcio.c, src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c, src/lharc.c, src/lhdir.c, src/lhext.c, src/lhlist.c, src/maketbl.c, src/maketree.c, src/patmatch.c, src/shuf.c, src/slide.c, src/util.c:
2007         added modeline for vi(m).
2008
2009         * src/lharc.c: backslash was missing.
2010
2011 2002-05-20  Koji Arai  <jca02266@nifty.ne.jp>
2012
2013         * src/lharc.c (open_old_archive):  On MinGW, set binary stdin.
2014
2015         * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
2016
2017         * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
2018
2019         * configure.ac, configure.in, README.autoconf: be able to specify
2020         --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
2021
2022         * src/lha.h: correct usage of mkstemp().
2023         On MinGW, opening file cannot be removed.
2024
2025         * src/lhadd.c (build_temporary_file): ditto.
2026
2027         * src/lharc.c (fatal_error): ditto.
2028
2029 2002-05-19  Koji Arai  <jca02266@nifty.ne.jp>
2030
2031         * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
2032         no use AM_C_PROTOTYPES for the present.
2033
2034         * config.h.in: ditto.
2035
2036         * src/lharc.c (print_tiny_usage_and_exit): change credit.
2037
2038         * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
2039
2040         * src/lharc.c (print_version): ditto.
2041
2042         * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
2043
2044 2002-05-19  Koji Arai  <jca02266@nifty.ne.jp>
2045
2046         * released.
2047
2048         * src/lharc.c (print_tiny_usage_and_exit): added credit.
2049         (print_version): print PLATFORM.
2050
2051         * configure.ac, configure.in, config.h.in: define PLATFORM.
2052
2053         * src/lharc.c (xstrdup): fix typo.
2054
2055         * configure.ac: added for autoconf-2.53.
2056
2057         * config.h.in: regenerate by autoconf-2.53.
2058
2059         * src/lharc.c (find_files): MinGW has st_ino but always 0.
2060
2061         * src/lharc.c (main): provisionally fix. set
2062         `get_filename_from_stdin' to false.
2063
2064         * src/util.c (rename): use builtin rename(2) on mingw32 (since have
2065         no link(2)).
2066
2067         * src/lharc.c (main): use xrealloc().
2068
2069         * src/lha_macro.h: specify "b" modifier always (for mingw32).
2070
2071         * src/lharc.c: use xstrdup() instead of strdup().
2072
2073         * src/lha_macro.h: ditto.
2074
2075         * src/lha_macro.h: getuid(), chown(), kill() are provisionally
2076         defined as 0.
2077
2078         * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
2079
2080         * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
2081         (build_backup_file): ditto.
2082
2083         * src/lharc.c (interrupt): ditto.
2084
2085         * src/lhext.c (extract_one): ditto.
2086
2087         * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
2088         mingw32.
2089
2090 2002-05-18  Koji Arai  <jca02266@nifty.ne.jp>
2091
2092         * lha_macro.h: define bcmp(), bzero(), bcopy() even if
2093         STDC_HEADERS is defined.
2094
2095         * huf.c (alloc_buf): call fatal_error() when memory allocation failed
2096         instead of returning NULL.
2097
2098         * lharc.c (main): use xmalloc().
2099
2100         * util.c (copyfile): use xmalloc().
2101
2102         * slide.c (encode_alloc): use xmalloc().
2103
2104         * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
2105         default kanji code.
2106
2107 2001-02-03  Koji Arai  <jca02266@nifty.ne.jp>
2108
2109         * README.autoconf, src/header.c: treat archive and system kanji
2110         code, correctly.
2111
2112 2001-01-31  Koji Arai  <jca02266@nifty.ne.jp>
2113
2114         * configure.in: mistakes for default archive method.
2115
2116         * src/header.c: directory separator 0xff must be transpose slash
2117         at first.
2118
2119 2001-01-29  Koji Arai  <jca02266@nifty.ne.jp>
2120
2121         * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
2122         substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
2123
2124         * src/lha_macro.h: use the VERSION macro (defined by configure) for
2125         the LHA_VERSION definition.
2126
2127         * src/header.c: added condition whether the macro MULTIBYTE_CHAR
2128         is defined or not.
2129
2130         * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
2131
2132         * configure.in: change version number from 1.14f to 1.14i.
2133         check function mkstemp().
2134         replace --enable-lh6 option to --with-default-method=[567].
2135
2136         * config.h.in: added definitions of HAVE_MKSTEMP and
2137         DEFAULT_LZHUFF_METHOD.
2138
2139         * IFNAMES: added a description about MKSTEMP.
2140
2141         * Makefile.am: added extra files.
2142
2143         * change-114f.txt, src/extract.c, src/header.c, src/huf.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhext.c, src/lhlist.c, src/maketbl.c, src/maketree.c, src/shuf.c, src/slide.c, src/util.c, src/dhuf.c, src/crcio.c:
2144         merged changing from lha-1.14f to lha-1.14i.
2145
2146         * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
2147         import lha-114i
2148
2149         * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
2150
2151         * Makefile, README.euc, change-114g.txt, change-114h.txt:
2152         import lha-114h
2153
2154         * src/crcio.c, src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhext.c, src/util.c:
2155         import lha-114g
2156
2157         * MACHINES2.euc, Makefile, README.euc, change-114g.txt, config.eng, config.jpn.euc, header.doc.euc, src/lhlist.c, src/maketbl.c, src/maketree.c, src/makezero.c, src/shuf.c, src/slide.c:
2158         import lha-114g
2159
2160         * src/header.c, src/lha_macro.h: implemented kanji code conversion
2161         on filename.
2162
2163         * src/header.c: fix bug in euc2sjis().
2164
2165 1999-10-05  Koji Arai  <jca02266@nifty.ne.jp>
2166
2167         * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
2168
2169 1999-09-30  Koji Arai  <jca02266@nifty.ne.jp>
2170
2171         * IFNAMES, configure.in, Makefile.in.org, README.autoconf, config.h.in, man/Makefile.am, src/Makefile.am, src/Makefile.in.org, Makefile.am, src/header.c, src/huf.c, src/larc.c, src/lha.h, src/lha_macro.h, src/lhadd.c, src/lharc.c, src/lhdir.c, src/lhdir.h, src/lhext.c, src/lhlist.c, src/makefile.dj, src/maketbl.c, src/maketree.c, src/patmatch.c, src/shuf.c, src/slide.c, src/util.c, Makefile, man/Makefile, src/Makefile, src/append.c, src/crcio.c, src/dhuf.c, src/extract.c:
2172         use the autoconf/automake
2173
2174 1999-08-28  Koji Arai  <jca02266@nifty.ne.jp>
2175
2176         * Makefile: import the lha-114f
2177
2178         * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
2179
2180         * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
2181         import the lha-114f
2182
2183         * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
2184         import the lha-114f
2185
2186         * src/append.c, src/crcio.c: import the lha-114f
2187
2188         * src/Makefile, src/lha.h, src/lha_macro.h, src/lharc.c, src/lhdir.c, src/lhdir.h, src/lhext.c, src/lhlist.c, src/makefile.dj, src/maketbl.c, src/maketree.c, src/patmatch.c, src/shuf.c, src/slide.c, src/util.c:
2189         import the lha-114f
2190
2191         * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c:
2192         import the lha-114f
2193
2194 Local Variables:
2195 eval: (if (string= (user-login-name) "arai") (setq user-mail-address "arai@users.sourceforge.jp"))
2196 End: