OSDN Git Service

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