OSDN Git Service

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