OSDN Git Service

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