OSDN Git Service

*** empty log message ***
[lha/lha.git] / ChangeLog
1 2002-11-11  Koji Arai  <jca02266@nifty.ne.jp>
2
3         * src/lhext.c (make_parent_path): On Cygwin, when `foo.exe'
4         exists, stat("foo", &buf) is successful and it is not a directory.
5
6         * src/util.c (skip_msdos_sfx1_code): move to header.c
7
8         * src/header.c (skip_msdos_sfx1_code): ditto.
9         some macro moved from lha_macro.h.
10
11         * src/lha_macro.h: ditto.
12
13         * tests/lha-test15: newly added for testing self extracting archive.
14
15         * tests/lha-test.in: ditto.
16
17         * tests/Makefile.am: ditto.
18
19         * configure.ac: refined messages.
20
21 2002-10-26  Koji Arai  <jca02266@nifty.ne.jp>
22
23         * src/bitio.c (putbits): use the function putcode().
24
25         * src/dhuf.c (decode_start_dyn): call init_code_cache().
26
27         * src/huf.c (encode_start_st1): ditto.
28         (decode_start_st1): ditto.
29
30         * src/larc.c (decode_start_lzs): ditto.
31
32         * src/shuf.c (decode_start_st0): ditto.
33         (encode_start_fix): ditto.
34         (decode_start_fix): ditto.
35
36         * src/Makefile.am: added bitio.c
37
38         * src/cproto.sh: added bitio.c
39
40         * src/bitio.c: new file.
41
42         * src/crcio.c: extracted bitio routines.
43
44         * src/lha.h: ditto.
45
46 2002-10-16  Koji Arai  <jca02266@nifty.ne.jp>
47
48         * 00readme.autoconf: modified.
49
50 2002-10-02  Koji Arai  <jca02266@nifty.ne.jp>
51
52         * src/util.c (xstrchr): `strchr(s, 0)' should return the pointer
53         of the '\0' terminator.
54
55 2002-09-14  Koji Arai  <jca02266@nifty.ne.jp>
56
57         * src/lhadd.c (add_one): Use chsize() if system does not have
58         ftruncate(2). (For MinGW)
59
60         * configure.ac: ditto.
61
62         * config.h.in: ditto.
63
64 2002-09-03  Koji Arai  <jca02266@nifty.ne.jp>
65
66         * released.
67
68         * 00readme.autoconf: modified for stable release.
69
70         * configure.ac: updated version.
71
72 2002-09-01  Koji Arai  <jca02266@nifty.ne.jp>
73
74         * tests/Makefile.am (EXTRA_DIST): lha-test12, lha-test13 and
75         lha-test14 were missed.
76
77 2002-08-31  Koji Arai  <jca02266@nifty.ne.jp>
78
79         * src/lhadd.c (append_it): refined.
80
81         * src/lhadd.c (append_it): no terminate when file cannot be opened.
82
83 2002-08-29  Koji Arai  <jca02266@nifty.ne.jp>
84
85         * tests/lha-test11: change the way of checking the `header size field'.
86
87         * configure.ac: the `--enable-user-name-header' switch has been
88         ineffective. corrected variable name.
89
90 2002-08-26  Koji Arai  <jca02266@nifty.ne.jp>
91
92         * tests/lha-test14: on Cygwin, cannot use '|' as filesname.
93
94         * tests/lha-test.in: on MinGW, skip lha-test14 test.
95
96         * 00readme.autoconf: modified.
97
98         * released.
99
100         * configure.ac: updated version.
101
102         * src/header.c: fixed a comment.
103
104         * src/prototypes.h (strcmp_filename): removed.
105
106         * src/header.c (dump_skip_bytes): note "ignored" if data is ignored.
107
108         * src/header.c (wintime_to_unix_stamp): newly added for converting
109         from `FILETIME' to `time_t'.
110         (get_extended_header): use `wintime_to_unix_stamp()' to recognize
111         the Windows time stamp header (0x41).
112
113         * src/lha.h: define `uint64_t' unless system has it.
114
115         * configure.ac: check existence of the type `uint64_t'.
116
117         * config.h.in: ditto.
118
119         * src/lharc.c (init_variable): set default header level to 2.
120
121 2002-08-24  Koji Arai  <jca02266@nifty.ne.jp>
122
123         * tests/lha-test.in (lha-test14): added to test the symbolic link file.
124
125         * tests/lha-test14: ditto.
126
127         * src/lhlist.c (list_one): use LzHeader.realname.
128
129         * src/lhext.c (extract_one): use LzHeader.realname.
130         should call make_parent_path(symlink).
131
132         * src/lhadd.c (add_one): use LzHeader.realname.
133         (delete): ditto.
134         (append_it): use strcmp() instead of strcmp_filename().
135         (strcmp_filename): removed.
136
137         * src/lha.h (struct LzHeader): added a member `realname' which is
138         symbolic linked name.
139
140         * src/header.c (get_header): split symbolic name in archive.
141         (write_header): join symbolic link name and linked name to put it
142         in archive.
143
144         * src/lhext.c (extract_one): force extract when `f' option is
145         specified. this is for OS-9 archives, [provisional].
146
147         * src/header.c: fixed cpp expressions around time functions.
148
149         * tests/lha-test8: test MS-DOS timestamp `ftime' structure.
150
151         * tests/lha-test.in (change_timestamp): newly added.
152
153 2002-08-22  Koji Arai  <jca02266@nifty.ne.jp>
154
155         * released.
156
157         * src/prototypes.h: regenerated.
158
159         * src/cproto.sh: refined.
160
161         * configure.ac: updated version.
162
163         * configure.ac: should use `exit' rather than `return' on
164         AC_TRY_RUN().  see the Autoconf manual.
165
166         * configure.ac: check whether the 2nd argument of gettimeofday()
167         is effective.
168
169         * src/header.c: ditto.
170
171         * config.h.in (GETTIMEOFDAY_HAS_2ND_ARG): ditto.
172
173         * tests/lha-test.in: `++' is invalid arithmetic operator on POSIX
174         shell, Ksh and Bash version 2.03 or earlier.
175
176         * tests/lha-test13: ditto.
177
178 2002-08-18  Koji Arai  <jca02266@nifty.ne.jp>
179
180         * src/lharc.c (print_version): version string is made here.
181
182         * src/lha_macro.h (LHA_VERSION): removed.
183
184         * src/slide.c (encode_alloc): used newly named `dicbit' macro.
185
186         * src/shuf.c (read_tree_p): ditto.
187         (decode_start_fix): ditto.
188
189         * src/lha_macro.h: `xxx_DICBIT' for each method was defined.
190
191         * src/header.c: correct a comment `Generic stamp format'.
192         (get_bytes): fixed for dumping header.
193
194         * src/lha_macro.h, src/lha.h: `EXTERN' macro definition was moved
195         to lha.h.
196
197         * src/header.c (get_bytes): print hex codes for invisible chars.
198
199         * src/lhlist.c: hate global variables.
200
201         * src/prototypes.h (convdelim): removed.
202
203         * src/lhlist.c (print_stamp): use ISO 8601 date format when `lha vv'.
204
205 2002-08-14  Koji Arai  <jca02266@nifty.ne.jp>
206
207         * src/header.c: discarded warning message for the extended header,
208         `Windows time stamp' ignored.
209
210         * src/header.c: in spite of extended type value, read contents of
211         any ext headers.
212
213         * src/header.c: comment fixed.
214
215 2002-08-12  Koji Arai  <jca02266@nifty.ne.jp>
216
217         * src/header.c (dump_skip_bytes): do nothing when length is 0.
218
219 2002-08-11  Koji Arai  <jca02266@nifty.ne.jp>
220
221         * src/lha_macro.h (SJC_FIRST_P): rename to SJIS_FIRST_P.
222         (SJC_SECOND_P): rename to SJIS_SECOND_P.
223
224         * src/util.c (convdelim): removed.
225
226         * src/header.c (convert_filename): when small letter is included
227         in filename, do not convert case.
228
229         * 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:
230         print filename when test failed.
231
232         * tests/lha-test.in, tests/lha-test12, tests/lha-test13:
233         added tests for converting text files.
234
235         * src/header.c (get_extended_header): recognize the Windows time
236         stamp header (0x41), but ignored.
237
238         * src/header.c (write_unix_info): added.
239
240 2002-08-11  Koji Arai  <jca02266@nifty.ne.jp>
241
242         * released.
243
244         * configure.ac: updated version.
245
246         * 00readme.autoconf: modified.
247
248         * src/header.c: DUMP_HEADER is always true.
249         dump header when running `lha vvv foo.lzh'.
250         (get_header): added new extend type JAVA.
251
252         * src/lha_macro.h (EXTEND_JAVA): added new extend type JAVA.
253
254         * src/lhlist.c (list_one): ditto.
255
256         * src/lharc.c (init_variable): `verbose' is changed to successive.
257         (main): ditto.
258
259 2002-08-10  Koji Arai  <jca02266@nifty.ne.jp>
260
261         * src/lhlist.c (list_one): fixed mode checks.
262
263         * src/prototypes.h: updated.
264
265         * src/header.c (get_header_level2): check CRC value for reading
266         level 2 and 3 header.
267         (get_header_level3): ditto.
268         (get_extended_header): ditto.
269         (get_header_level0): set total header size to
270         `LzHeader.header_size' even if level 0 or 1 header is read.
271         (get_header_level1): ditto.
272
273         * src/append.c (encode_lzhuf): encode(), decode() and copyfile()
274         were changed.
275         (put_indicator): moved from crcio.c.
276
277         * src/crcio.c (put_indicator): moved to append.c.
278         (calccrc): generalized.
279         (fread_crc): changed interface.
280         (fwrite_crc): changed interface.
281         (calc_header_crc): removed. use calccrc() instead.
282
283         * src/extract.c (decode_lzhuf): copyfile() and decode() were changed.
284
285         * src/lha.h: hate global variable. `crc' is removed.
286         `reading_size' moved to append.c.
287
288         * src/lha_macro.h (INITIALIZE_CRC): newly added.
289         (UPDATE_CRC): no update in macro code.
290
291         * src/lhadd.c (temporary_to_new_archive_file): copyfile() was changed.
292
293         * src/lharc.c (copy_old_one): header size adjusting is done by
294         the get_header().
295
296         * src/slide.c (update): changed interface.
297         (get_next): ditto.
298         (encode): ditto.
299         (decode): ditto.
300
301         * src/util.c (copyfile): changed interface.
302
303 2002-08-10  Koji Arai  <jca02266@nifty.ne.jp>
304
305         * tests/lha-test5: added tests using pipe.
306
307         * src/lhadd.c (cmd_add): applied reverse patch.  intermediate file
308         is the necessary when created archive put in pipe.
309
310         * src/header.c (skip_bytes): newly added.
311         (dump_get_byte): newly added for dumping the data for debugging.
312         (dump_skip_bytes): ditto.
313         (get_word): ditto.
314         (get_longword): ditto.
315         (get_bytes): ditto.
316         (get_extended_header): modified for reading the level 3 header.
317         (get_header_level3): newly added.
318
319         * src/lha.h (struct LzHeader): for level 3 header, added a new
320         member `size_field_length' and changed type of the `header_size'
321         from int to long.
322
323         * src/header.c (init_header): the `hdr->method' should be
324         initialized to the "-lh0-" for empty files.
325
326         * tests/lha-test2: ditto.
327
328         * src/lhadd.c (add_one): should print indicator for empty files.
329
330 2002-08-09  Koji Arai  <jca02266@nifty.ne.jp>
331
332         * tests/lha-test.in: adapt to ksh (and posix shell).
333
334 2002-08-05  Koji Arai  <jca02266@nifty.ne.jp>
335
336         * 00readme.autoconf: refined.
337
338         * config.h.in (BACKUP_OLD_ARCHIVE): added.
339
340         * configure.ac: added a command line switch `--enable-backup-archive'.
341
342         * src/lhadd.c (cmd_add): if `backup_old_archive' is true, no
343         backup archive.
344         (cmd_delete): ditto.
345
346         * src/lharc.c (init_variable): initialize `backup_old_archive'.
347
348         * src/lha.h (backup_old_archive): added for nobackup.
349
350 2002-08-02  Koji Arai  <jca02266@nifty.ne.jp>
351
352         * src/lha_macro.h, src/lha.h, src/header.c, src/lhadd.c: Fixed
353         misspelling, not `STRAGE' but `STORAGE'.
354
355 2002-07-29  Koji Arai  <jca02266@nifty.ne.jp>
356
357         * re-released.
358
359         * src/header.c: should use error() instead of fatal_error().
360         (get_header): fixed wrong end mark checking.
361
362         * src/prototypes.h: updated.
363
364         * released.
365
366         * configure.ac: updated version.
367
368         * 00readme.autoconf: described about header.c bug on original lha.
369
370 2002-07-28  Koji Arai  <jca02266@nifty.ne.jp>
371
372         * tests/Makefile.am: added lha-test11.
373
374         * src/crcio.c (fread_txt): responded to (gcc -Wall) compiler warnings.
375
376         * src/header.c (generic_to_unix_stamp): ditto.
377
378         * src/lha_macro.h: ditto.
379
380         * src/lhadd.c (delete): ditto.
381
382         * src/lharc.c (open_old_archive): ditto.
383
384         * src/lhlist.c (list_one): ditto.
385
386         * src/prototypes.h: updated.
387
388         * tests/lha-test.in: added lha-test11.
389
390         * tests/lha-test8: added tests for level 0 and 2 header.
391
392         * tests/lha-test10: added tests for generic header.
393
394         * tests/lha-test11: testing for long filename. moved from lha-test10.
395
396 2002-07-26  Koji Arai  <jca02266@nifty.ne.jp>
397
398         * src/header.c (write_header): rewritten.
399
400 2002-07-25  Koji Arai  <jca02266@nifty.ne.jp>
401
402         * tests/lha-test4: stderr should be redirected.
403
404         * src/lharc.c (main): exit with status 1 (meaning failure) when the
405         function error() was called.
406         (error): ditto.
407
408         * src/lha.h (LzHeader.last_modified_stamp;): no longer used it.
409
410         * src/header.c (get_header): rewritten.
411
412 2002-07-21  Koji Arai  <jca02266@nifty.ne.jp>
413
414         * tests/lha-test10: change grep pattern so that pattern matches
415         a carriage return at the end of line for MinGW.
416
417         * src/lha.h: define `struct utimbuf' when utime.h is not given
418         such as MinGW. (Microsoft Visual Studio 6.0 has sys/utime.h).
419
420         * src/lhext.c (make_parent_path): missing braces.
421
422         * tests/lha-test.in (check): print script line number when test failed.
423
424         * 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.
425
426         * tests/lha-test10: on Cygwin/MinGW, could not make 255 bytes
427         filename. (the system limit of filename length contains the length
428         of current directory.)
429
430         * tests/lha-test10: should use /bin/ls instead of ls, since
431         /usr/ucb/ls puts size on 4th field (on Solaris).
432
433 2002-07-18  Koji Arai  <jca02266@nifty.ne.jp>
434
435         * released.
436
437         * configure.ac: updated version.
438
439         * src/lhext.c (adjust_info): should use `struct utimbuf' for
440         `utime(2)' rather than `time_t' array.
441
442         * src/header.c (write_header): [BUG]: should not write zero at the
443         first byte on level 2 header. should adjust header size.
444
445         * tests/lha-test10: added tests for level 2 header.
446
447         * src/lha_macro.h, src/header.c (setup_get): moved to header.c.
448         (get_byte): ditto.
449         (put_ptr): ditto.
450         (setup_put): ditto.
451         (put_byte): ditto.
452         (get_bytes): newly added.
453         (put_bytes): newly added.
454
455 2002-07-17  Koji Arai  <jca02266@nifty.ne.jp>
456
457         * src/header.c (get_header): [BUG]: Could not read level 2 header
458         when the header size is grater than 256.
459         (convert_filename): Should use the `FILENAME_LENGTH' macro rather
460         than 256.
461         (write_header): [BUG]: Suppress to overflow the header size when
462         long filename is written in level 0 or 1 header. On level 1
463         header, always use the extended filename header instead of the
464         base header.
465
466         * src/lha.h (LzHeader): the type of `header_size' was changed
467         from `unsigned char' to `int', for the level 2 header archive.
468
469         * src/lhext.c (extract_one): should use the `FILENAME_LENGTH'
470         macro rather than 256 (provisionally fixed).
471
472         * tests/lha-test.in: notify failed test number.
473
474         * tests/lha-test10: added tests for long pathname.
475
476 2002-07-14  Koji Arai  <jca02266@nifty.ne.jp>
477
478         * re-released.
479
480         * src/header.c (get_header): archive path separator should be
481         converted always.
482
483         * released.
484
485         * configure.ac: updated version.
486
487         * src/header.c (write_header): if user/group name is not set,
488         extended header (0x52 and 0x53) should not be made.
489
490         * tests/lha-test10: added testing to handle deep directory.
491
492         * src/header.c (write_header): fixed typo, not strchr() but
493         strrchr().
494
495         * src/prototypes.h: regenerated.
496
497         * src/header.c (convert_filename): prefer to use the
498         `FILENAME_LENGTH' macro rather than 256.
499
500         * src/cproto.sh: fixed typo.
501
502 2002-07-11  Koji Arai  <jca02266@nifty.ne.jp>
503
504         * tests/Makefile.am (EXTRA_DIST): lha-test9 and lha-test10 were missed.
505
506         * src/lharc.c (print_tiny_usage): no exit here.
507
508         * src/header.c (ConvertEncodingByIconv): newly added.
509         Thanks to Hiroto Sakai.
510
511         * configure.ac, config.h.in: Checking to have iconv() for utf-8
512         conversion.
513
514         * configure.ac: Checking whether strrchr() is 8 bit clean or not.
515         On Mac OS X, strchr() can handle 8 bit characters, but strrchr()
516         cannot.
517         Should use '\377' rather than '\xff' for de-ANSI compiler.
518
519 2002-07-10  Koji Arai  <jca02266@nifty.ne.jp>
520
521         * released.
522
523         * configure.ac: updated version.
524
525         * src/header.c: change hex codes '\xff' to octal codes '\377'.
526
527         * tests/lha-test.in: Skip the lha-test9. (this test is imcomplete
528         for now)
529
530         * tests/lha-test10: Should extract directory even if the archive
531         header was level 0.
532
533         * src/header.c (get_header): Should convert kanji code and path
534         separator for the level 0 header entry.
535         Should convert `\' to `/' for level 0 header (do always to make sure,
536         SO CANNOT CONTAIN THE `\' IN FILENAME).
537         (init_header): [BUG]: Should not convert path separator here (Should do
538         in write_header()).
539         (write_header): [BUG]: should set pathname (contains directory part) to
540         the LzHeader.name field on level 0 header archive even if the
541         archive methods is -lhd-.
542
543 2002-07-09  Koji Arai  <jca02266@nifty.ne.jp>
544
545         * src/lha.h, src/header.c: the CoreFoundation header inclusion
546         moved to header.c.
547
548         * src/lha.h, src/lharc.c, IFNAMES: macro NODIRECTORY was removed.
549
550         * src/lha.h, src/lhadd.c, src/lharc.c, src/lhext.c: fixed
551         misspelling, not `writting' but `writing'.
552
553 2002-07-07  Koji Arai  <jca02266@nifty.ne.jp>
554
555         * src/lha.h, src/lha_macro.h: refined.
556
557         * src/lhadd.c (append_it): macro STRING_COMPARE() was discarded.
558
559         * src/lha_macro.h: ditto.
560
561         * IFNAMES: NOVOID was removed.
562
563         * src/lharc.c (main): terminate with exit status 2 when specified
564         command line switche is wrong,
565
566         * configure.ac, config.h.in: added checking utime.h existent.
567
568         * src/crcio.c (putc_euc): void returned.
569
570         * src/header.c, src/lha.h, src/lha_macro.h, src/lhadd.c: refined.
571
572         * src/lharc.c, src/prototypes.h, src/slide.c: refined.
573
574         * configure.ac: should specify the 4th argument to AC_TRY_RUN()
575         for cross compiling.
576
577         * configure.ac: fix a test expression.
578
579         * src/cproto.sh: added for maintainer.
580
581         * src/lha.h: support de-ANSI variable arguments.
582
583         * src/lharc.c: ditto.
584
585         * src/util.c: ditto.
586
587         * src/Makefile.am (lha_SOURCES): added prototypes.h.
588
589         * src/lha.h: function prototypes moved to prototypes.h.
590
591         * src/prototypes.h: generated by the cproto command.
592
593         * configure.ac: On Mac OS X, in spite of using the CoreFoundation
594         for utf-8 conversion, I have missed specifying the `-framework
595         CoreFoundation' in LDFLAGS.
596
597         * src/Makefile.am (EXTRA_DIST): no need to specify `lhdir.c'.
598
599 2002-07-06  Koji Arai  <jca02266@nifty.ne.jp>
600
601         * released.
602
603         * configure.ac: updated version.
604
605         * tests/lha-test10: added testing the header level 0, 1 and 2.
606
607         * tests/lha-test.in: ditto.
608
609         * src/lharc.c: `#include <stdarg.h>' moved to lha.h.
610
611         * src/lha.h: ditto.
612
613         * src/util.c: ditto.
614
615         * configure.ac: AC_REPLACE_FUNCS(vsnprintf).
616
617         * config.h.in: ditto.
618
619         * src/lha.h: ditto.
620
621         * src/vsnprintf.c: derived snprintf() which has the BSD licence.
622
623         * configure.ac: fix typo.
624
625         * configure.ac: checking whether strchr() is 8 bit clean or not.
626
627         * config.h.in: ditto.
628
629         * src/util.c: give functions strchr(), strrchr(), memchr() and
630         memrchr() which handle 8 bit characters correctly.
631
632         * src/header.c: use above if needed.
633
634         * src/lha_macro.h: deprecate the macro name `DELIM2' which is path
635         separattor for the filename in lha header.
636         use LHA_PATHSEP instead.
637
638         * src/util.c (convdelim): ditto.
639
640         * src/header.c (convert_filename): ditto.
641         (write_header): ditto.
642
643         * src/header.c (convert_filename): fixed bug on utf8 conversion,
644         provisionally.
645
646 2002-06-30  Koji Arai  <jca02266@nifty.ne.jp>
647
648         * configure.ac: fixed typo.
649
650         * src/header.c (sjis_to_utf8): fixed typo.
651         (utf8_to_sjis): fixed typo.
652
653         * src/lhadd.c (cmd_add): Missed to adjust the index when specified
654         adding file is same as the generating archive file.
655
656 2002-06-29  Koji Arai  <jca02266@nifty.ne.jp>
657
658         * src/header.c (convert_filename): rename a function
659         `filename_conv()' to `convert_filename()'.
660         (sjis_to_utf8_static): no use the static variable.
661         (utf8_to_sjis_static): ditto.
662
663         * src/lha.h: rename sjis_to_utf8_static() and utf8_to_sjis_static()
664         into sjis_to_utf8() and utf8_to_sjis().
665
666         * src/lha_macro.h: added a macro `CODE_UTF8'.
667
668         * configure.ac: decide CODE_UTF8.
669         updated version.
670
671         * 00readme.autoconf: modified.
672
673         * configure.ac: modified for Mac OS X.
674
675         * src/header.c, lha.h, lha_macro.h, lharc.c: Merged a patch for
676         the Mac OS X, convert utf-8 filename to shift_jis. This patch was
677         contributed on LHa BBS. Thanks to Hiroto Sakai.
678
679         * src/lhext.c: replaced bcmp() with memcmp().
680
681         * src/lha_macro.h: ditto.
682
683         * src/append.c: replace bcopy() with memcpy() or memmove().
684
685         * src/lha_macro.h: ditto.
686
687         * src/lhadd.c: ditto.
688
689         * src/lharc.c: ditto.
690
691         * src/header.c: ditto.
692         replace bzero() with memset().
693
694         * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
695         the LHa BBS [28])
696
697         * src/slide.c (encode_alloc): Wrong value was assigned to the
698         `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN,
699         reported on the LHa BBS [38]).
700
701         * src/lha_macro.h: ditto.
702
703         * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
704         fixed by DANGAN (reported on the LHa BBS [35]).
705
706         * src/lha_macro.h (LH3_DICBIT): ditto.
707
708         * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was
709         refined by DANGAN (reported on the LHa BBS [30], [39], [62]).
710
711 2002-06-26  Koji Arai  <jca02266@nifty.ne.jp>
712
713         * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
714
715         * tests/lha-test3: Rewrite tests for generic format archives.
716
717         * tests/lha-test2: Added tests for -lh0- method.
718         Moved from contents of lha-test3 (tests for print archive).
719
720 2002-06-23  Koji Arai  <jca02266@nifty.ne.jp>
721
722         * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
723
724         * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
725           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
726
727         * src/lharc.c: ditto.
728
729         * src/slide.c (interface;): Fixed wrong index.
730           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
731
732         * 00readme.autoconf: refined.
733
734         * tests/lha-test9: added tests for overriding files.
735
736         * tests/lha-test.in: added test9.
737
738         * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
739         re-fixed provisionaly.
740
741         * src/lhext.c (cmd_extract): When error occurred in extract_one(),
742         should adjust point of file stream.
743
744         * configure.ac: library checkings (for libmingwex) should be done
745         before header checkings.
746
747 2002-06-22  Koji Arai  <jca02266@nifty.ne.jp>
748
749         * released:
750
751         * configure.ac: updated version.
752
753         * src/lharc.c (init_variable): Removed useless assignments.
754
755         * src/lharc.c (main): Behavior was changed. when `q' or `q2' option
756         (not `q1') is specified, the `f' option is enabled implicitly.
757         In original behavior, the option `q', `q0', `q1' and `q2' will
758         enable `f' option implicitly (bug?).
759
760         * src/lharc.c (main): [BUG]: When `q2' option is specified,
761         level 2 header is generated.
762
763 2002-06-21  Koji Arai  <jca02266@nifty.ne.jp>
764
765         * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
766
767         * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
768
769         * tests/lha-test.in: All tests are splited into some files.
770
771         * tests/Makefile.am: ditto.
772
773         * tests/lha-test2: ditto.
774
775         * tests/lha-test3: ditto.
776
777         * tests/lha-test4: ditto.
778
779         * tests/lha-test5: ditto.
780
781         * tests/lha-test6: ditto.
782
783         * tests/lha-test7: ditto.
784
785         * tests/lha-test8: ditto.
786
787 2002-06-20  Koji Arai  <jca02266@nifty.ne.jp>
788
789         * src/lhadd.c (cmd_add): No create an intermediate file when archive
790         is written in stdout.
791
792 2002-06-19  Koji Arai  <jca02266@nifty.ne.jp>
793
794         * 00readme.autoconf: Modified.
795
796 2002-06-18  Koji Arai  <jca02266@nifty.ne.jp>
797
798         * configure.in: Removed. (no support the Autoconf version 2.13).
799
800         * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
801
802         * src/header.c: Remove preprocess codes for kanji code decision.
803
804         * configure.ac: When --enable-multibyte-filename[=auto] is specified,
805         decide kanji code for filename automatically.
806         Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS.
807
808 2002-06-17  Koji Arai  <jca02266@nifty.ne.jp>
809
810         * configure.in, configure.ac: updated version.
811
812         * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir()
813         has moved to libmingwex.a. For now, not listed in the
814         /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file.
815
816         * src/lharc.c (message): use variable argument list with stdarg.
817         (warning): ditto.
818         (error): ditto.
819         (write_error): removed.
820         (read_error): removed.
821         (build_temporary_name): use xsnprintf().
822         (open_old_archive): ditto.
823         (expanded_archive_name): move in the function (open_old_archive()) as static.
824
825         * src/crcio.c (putcode): changed for fatal_error().
826         (putbits): changed for fatal_error().
827         (fwrite_crc): ditto.
828         (putc_euc): should return EOF when putc() cause error.
829         (fwrite_txt): changed for putc_euc().
830
831         * src/header.c (get_header): changed for fatal_error(), warning() and error().
832         (init_header): use xsnprintf().
833         (write_header): fixed wrong usage of fwrite().
834
835         * src/lha.h: updated declarations.
836
837         * src/lhadd.c (append_it): changed for error().
838
839         * src/lhext.c (inquire_extract): ditto.
840
841         * src/lhlist.c (cmd_list): ditto.
842
843         * src/maketbl.c (make_table): ditto.
844
845         * src/util.c (copyfile): changed for fatal_error().
846         (xsnprintf): newly added to adopt to various snprintf().
847
848 2002-06-12  Koji Arai  <jca02266@nifty.ne.jp>
849
850         * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
851
852         * src/lhlist.c (list_one): ditto.
853
854 2002-06-11  Koji Arai  <jca02266@nifty.ne.jp>
855
856         * src/lharc.c: index was wrong.
857           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
858
859 2002-06-06  Koji Arai  <jca02266@nifty.ne.jp>
860
861         * configure.ac, configure.in: changed macro name.
862         not multibyte-char but multibyte-filename.
863         not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
864
865         * 00readme.autoconf: ditto.
866
867         * config.h.in: ditto.
868
869         * src/util.c: ditto.
870
871         * src/lha_macro.h: ditto.
872
873         * src/header.c: ditto.
874
875         * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
876
877         * configure.ac: ditto.
878
879         * src/header.c (init_header): ditto.
880
881         * src/header.c (init_header): should clear LzHeader.
882
883 2002-06-05  Koji Arai  <jca02266@nifty.ne.jp>
884
885         * released.
886
887         * configure.ac (AC_INIT): changed package name and specified tar name.
888
889         * src/lharc.c: added `--help' command line switch.
890
891         * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
892
893         * README.autoconf, 00readme.autoconf: renamed.
894
895         * configure.ac, configure.in: updated version.
896
897 2002-06-04  Koji Arai  <jca02266@nifty.ne.jp>
898
899         * README.autoconf, header.doc.euc: describe about user/group name
900         header.
901
902         * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
903
904         * configure.ac, configure.in, config.h.in: added a switch
905         `--enable-user-name-header' whether user/name extended header is
906         made.
907
908 2002-06-01  Koji Arai  <jca02266@nifty.ne.jp>
909
910         * README.autoconf: `-i' switch of automake is deprecated.
911
912 2002-05-29  Koji Arai  <jca02266@nifty.ne.jp>
913
914         * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
915
916         * src/lha.h: define uid_t/gid_t as `int' if no have it.
917
918         * src/lhext.c (adjust_info): mismatched braces.
919
920         * header.doc.euc: around user/group name extention.
921
922         * configure.in, configure.ac, config.h.in: checks having
923         getpwuid/getgrgid and so on.
924
925         * src/header.c (get_header): use the extend header, user/group name.
926         (init_header): ditto.
927
928         * src/lha.h: added <pwd.h>, <grp.h> header includings.
929
930         * src/lhext.c (adjust_info): change owner/group according to
931         user/group name when extracting.
932
933         * src/lhlist.c (list_one): print user/group name when the header
934         has them.
935         (list_one): correct column position on OS68K.
936
937         * tests/lha-test.in: added timestamp checks.
938
939         * src/lha_macro.h: comment about OS code.
940
941 2002-05-28  Koji Arai  <jca02266@nifty.ne.jp>
942
943         * src/lharc.c (xstrdup): no need to call fatal_error().
944
945         * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
946
947         * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
948
949         * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
950         new macro name to adopt to the AC_CHECK_MEMBERS().
951
952 2002-05-27  Koji Arai  <jca02266@nifty.ne.jp>
953
954         * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
955
956         * src/header.c (filename_conv): fix a bug, reverse condition and
957         conversion for filename case.
958
959         * README.autoconf: added description about `get_filename_from_stdin' feature.
960
961         * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
962
963         * src/lharc.c (main): never set `get_filename_from_stdin` to true.
964         `echo foo | lha x foo.lzh' does not work like original LHa for UNIX.
965
966         * tests/lha-test.in: replace with #!/bin/bash.
967
968         * README.autoconf: added E-Mail address.
969
970         * configure.ac: updated version and added mail address for bug reports.
971
972         * configure.in: updated version.
973
974         * released.
975
976         * README.autoconf: added `make check' on sample description.
977
978         * configure.in, configure.ac: update version.
979
980 2002-05-26  Koji Arai  <jca02266@nifty.ne.jp>
981
982         * tests/lha-test.in: added some tests.
983
984         * tests/Makefile.am: refined.
985
986         * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
987
988         * tests/lha-test.in: added some tests.
989
990         * tests/lha-test.in: specified `q' option on print archive test.
991
992         * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
993         a new file already exists.
994
995         * src/lhext.c (extract_one): On MinGW, set binary on stdout when
996         print archive (`p' switch).
997
998         * tests/lha-test.in: added some tests.
999
1000         * src/lhadd.c (report_archive_name_if_different): warning messages
1001         should be printed to stderr rather than stdout.
1002         (cmd_delete): ditto.
1003
1004         * tests/Makefile.am: fix EXTRA_DIST.
1005
1006         * configure.in, configure.ac: update version.
1007
1008         * tests/lha-test.in: added tests.
1009
1010         * tests/Makefile.am: ditto.
1011
1012         * configure.in, configure.ac, Makefile.am: ditto.
1013
1014 2002-05-25  Koji Arai  <jca02266@nifty.ne.jp>
1015
1016         * IFNAMES: updated.
1017
1018         * released.
1019
1020         * README.autoconf: added description for developpers.
1021
1022         * configure.in, configure.ac, config.h.in: refined.
1023
1024         * src/util.c (memmove): use HAVE_MEMMOVE.
1025         (mkdir): use HAVE_WORKING_FORK.
1026
1027         * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
1028
1029         * IFNAMES (sony_news): updated.
1030
1031         * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
1032         see `lha --version'.
1033
1034 2002-05-22  Koji Arai  <jca02266@nifty.ne.jp>
1035
1036         * 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:
1037         added modeline for vi(m).
1038
1039         * src/lharc.c: backslash was missing.
1040
1041 2002-05-20  Koji Arai  <jca02266@nifty.ne.jp>
1042
1043         * src/lharc.c (open_old_archive):  On MinGW, set binary stdin.
1044
1045         * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
1046
1047         * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
1048
1049         * configure.ac, configure.in, README.autoconf: be able to specify
1050         --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
1051
1052         * src/lha.h: correct usage of mkstemp().
1053         On MinGW, opening file cannot be removed.
1054
1055         * src/lhadd.c (build_temporary_file): ditto.
1056
1057         * src/lharc.c (fatal_error): ditto.
1058
1059 2002-05-19  Koji Arai  <jca02266@nifty.ne.jp>
1060
1061         * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
1062         no use AM_C_PROTOTYPES for the present.
1063
1064         * config.h.in: ditto.
1065
1066         * src/lharc.c (print_tiny_usage_and_exit): change credit.
1067
1068         * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
1069
1070         * src/lharc.c (print_version): ditto.
1071
1072         * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
1073
1074 2002-05-19  Koji Arai  <jca02266@nifty.ne.jp>
1075
1076         * released.
1077
1078         * src/lharc.c (print_tiny_usage_and_exit): added credit.
1079         (print_version): print PLATFORM.
1080
1081         * configure.ac, configure.in, config.h.in: define PLATFORM.
1082
1083         * src/lharc.c (xstrdup): fix typo.
1084
1085         * configure.ac: added for autoconf-2.53.
1086
1087         * config.h.in: regenerate by autoconf-2.53.
1088
1089         * src/lharc.c (find_files): MinGW has st_ino but always 0.
1090
1091         * src/lharc.c (main): provisionally fix. set
1092         `get_filename_from_stdin' to false.
1093
1094         * src/util.c (rename): use builtin rename(2) on mingw32 (since have
1095         no link(2)).
1096
1097         * src/lharc.c (main): use xrealloc().
1098
1099         * src/lha_macro.h: specify "b" modifier always (for mingw32).
1100
1101         * src/lharc.c: use xstrdup() instead of strdup().
1102
1103         * src/lha_macro.h: ditto.
1104
1105         * src/lha_macro.h: getuid(), chown(), kill() are provisionally
1106         defined as 0.
1107
1108         * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
1109
1110         * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
1111         (build_backup_file): ditto.
1112
1113         * src/lharc.c (interrupt): ditto.
1114
1115         * src/lhext.c (extract_one): ditto.
1116
1117         * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
1118         mingw32.
1119
1120 2002-05-18  Koji Arai  <jca02266@nifty.ne.jp>
1121
1122         * lha_macro.h: define bcmp(), bzero(), bcopy() even if
1123         STDC_HEADERS is defined.
1124
1125         * huf.c (alloc_buf): call fatal_error() when memory allocation failed
1126         instead of returning NULL.
1127
1128         * lharc.c (main): use xmalloc().
1129
1130         * util.c (copyfile): use xmalloc().
1131
1132         * slide.c (encode_alloc): use xmalloc().
1133
1134         * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
1135         default kanji code.
1136
1137 2001-02-03  Koji Arai  <jca02266@nifty.ne.jp>
1138
1139         * README.autoconf, src/header.c: treat archive and system kanji
1140         code, correctly.
1141
1142 2001-01-31  Koji Arai  <jca02266@nifty.ne.jp>
1143
1144         * configure.in: mistakes for default archive method.
1145
1146         * src/header.c: directory separator 0xff must be transpose slash
1147         at first.
1148
1149 2001-01-29  Koji Arai  <jca02266@nifty.ne.jp>
1150
1151         * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
1152         substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
1153
1154         * src/lha_macro.h: use the VERSION macro (defined by configure) for
1155         the LHA_VERSION definition.
1156
1157         * src/header.c: added condition whether the macro MULTIBYTE_CHAR
1158         is defined or not.
1159
1160         * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
1161
1162         * configure.in: change version number from 1.14f to 1.14i.
1163         check function mkstemp().
1164         replace --enable-lh6 option to --with-default-method=[567].
1165
1166         * config.h.in: added definitions of HAVE_MKSTEMP and
1167         DEFAULT_LZHUFF_METHOD.
1168
1169         * IFNAMES: added a description about MKSTEMP.
1170
1171         * Makefile.am: added extra files.
1172
1173         * 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:
1174         merged changing from lha-1.14f to lha-1.14i.
1175
1176         * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
1177         import lha-114i
1178
1179         * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
1180
1181         * Makefile, README.euc, change-114g.txt, change-114h.txt:
1182         import lha-114h
1183
1184         * 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:
1185         import lha-114g
1186
1187         * 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:
1188         import lha-114g
1189
1190         * src/header.c, src/lha_macro.h: implemented kanji code conversion
1191         on filename.
1192
1193         * src/header.c: fix bug in euc2sjis().
1194
1195 1999-10-05  Koji Arai  <jca02266@nifty.ne.jp>
1196
1197         * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
1198
1199 1999-09-30  Koji Arai  <jca02266@nifty.ne.jp>
1200
1201         * 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:
1202         use the autoconf/automake
1203
1204 1999-08-28  Koji Arai  <jca02266@nifty.ne.jp>
1205
1206         * Makefile: import the lha-114f
1207
1208         * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
1209
1210         * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
1211         import the lha-114f
1212
1213         * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
1214         import the lha-114f
1215
1216         * src/append.c, src/crcio.c: import the lha-114f
1217
1218         * 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:
1219         import the lha-114f
1220
1221         * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c:
1222         import the lha-114f