OSDN Git Service

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