OSDN Git Service

*** empty log message ***
[lha/lha.git] / ChangeLog
1 2002-06-29  Koji Arai  <jca02266@nifty.ne.jp>
2
3         * src/append.c: replace bcopy() with memcpy() or memmove().
4
5         * src/lha_macro.h: ditto.
6
7         * src/lhadd.c: ditto.
8
9         * src/lharc.c: ditto.
10
11         * src/header.c: ditto.
12         replace bzero() with memset().
13
14         * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
15         the LHa BBS [28])
16
17         * src/slide.c (encode_alloc): Wrong value was assigned to the
18         `dicbit', when SUPPORT_LH7 was not defined. (fixed by DANGAN,
19         reported on the LHa BBS [38]).
20         
21         * src/lha_macro.h: ditto.
22
23         * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
24         fixed by DANGAN (reported on the LHa BBS [35]).
25
26         * src/lha_macro.h (LH3_DICBIT): ditto.
27
28         * src/dhuf.c (encode_c_dyn): the method of -lh1- compression was
29         refined by DANGAN (reported on the LHa BBS [30], [39], [62]).
30
31 2002-06-26  Koji Arai  <jca02266@nifty.ne.jp>
32
33         * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
34
35         * tests/lha-test3: Rewrite tests for generic format.
36
37         * tests/lha-test2: Added tests for -lh0- method.
38         Moved from contents of lha-test3 (tests for print archive).
39
40 2002-06-23  Koji Arai  <jca02266@nifty.ne.jp>
41
42         * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
43
44         * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
45           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
46
47         * src/lharc.c: ditto.
48
49         * src/slide.c (interface;): Fixed wrong index.
50           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
51
52         * 00readme.autoconf: refined.
53
54         * tests/lha-test9: added tests for overriding files.
55
56         * tests/lha-test.in: added test9.
57
58         * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
59         re-fixed provisionaly.
60
61         * src/lhext.c (cmd_extract): When error occurred in extract_one(),
62         should adjust point of file stream.
63
64         * configure.ac: library checkings (for libmingwex) should be done
65         before header checkings.
66
67 2002-06-22  Koji Arai  <jca02266@nifty.ne.jp>
68
69         * released:
70
71         * configure.ac: updated version.
72
73         * src/lharc.c (init_variable): Removed useless assignments.
74
75         * src/lharc.c (main): Behavior is changed. when `q' or `q2' option
76         (not `q1') is specified, the `f' option is enabled implicitly.
77         In original behavior, the option `q', `q0', `q1' and `q2' will
78         enable `f' option implicitly (bug?).
79
80         * src/lharc.c (main): [BUG]: When `q2' option is specified,
81         level 2 header is generated.
82
83 2002-06-21  Koji Arai  <jca02266@nifty.ne.jp>
84
85         * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
86
87         * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
88
89         * tests/lha-test.in: All tests are splited into some files.
90
91         * tests/Makefile.am: ditto.
92
93         * tests/lha-test2: ditto.
94
95         * tests/lha-test3: ditto.
96
97         * tests/lha-test4: ditto.
98
99         * tests/lha-test5: ditto.
100
101         * tests/lha-test6: ditto.
102
103         * tests/lha-test7: ditto.
104
105         * tests/lha-test8: ditto.
106
107 2002-06-20  Koji Arai  <jca02266@nifty.ne.jp>
108
109         * src/lhadd.c (cmd_add): No create an intermediate file when archive
110         is written in stdout.
111
112 2002-06-19  Koji Arai  <jca02266@nifty.ne.jp>
113
114         * 00readme.autoconf: Modified.
115
116 2002-06-18  Koji Arai  <jca02266@nifty.ne.jp>
117
118         * configure.in: Removed. (no support the Autoconf version 2.13).
119
120         * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
121
122         * src/header.c: Remove preprocess codes for kanji code decision.
123
124         * configure.ac: When --enable-multibyte-filename[=auto] is specifi%d,
125         decide kanji code for filename automatically.
126         Otherwise, euc or sjis is specified, it is EUC-JP or Shift_JIS.
127
128 2002-06-17  Koji Arai  <jca02266@nifty.ne.jp>
129
130         * configure.in, configure.ac: updated version.
131
132         * configure.in, configure.ac: On mingw-runtime-2.0-1, opendir()
133         has moved to libmingwex.a. For now, not listed in the
134         /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs file.
135
136         * src/lharc.c (message): use variable argument list with stdarg.
137         (warning): ditto.
138         (error): ditto.
139         (write_error): removed.
140         (read_error): removed.
141         (build_temporary_name): use xsnprintf().
142         (open_old_archive): ditto.
143         (expanded_archive_name): move in the function (open_old_archive()) as static.
144
145         * src/crcio.c (putcode): changed for fatal_error().
146         (putbits): changed for fatal_error().
147         (fwrite_crc): ditto.
148         (putc_euc): should return EOF when putc() cause error.
149         (fwrite_txt): changed for putc_euc().
150
151         * src/header.c (get_header): changed for fatal_error(), warning() and error().
152         (init_header): use xsnprintf().
153         (write_header): fixed wrong usage of fwrite().
154
155         * src/lha.h: updated declarations.
156
157         * src/lhadd.c (append_it): changed for error().
158
159         * src/lhext.c (inquire_extract): ditto.
160
161         * src/lhlist.c (cmd_list): ditto.
162
163         * src/maketbl.c (make_table): ditto.
164
165         * src/util.c (copyfile): changed for fatal_error().
166         (xsnprintf): newly added to adopt to various snprintf().
167
168 2002-06-12  Koji Arai  <jca02266@nifty.ne.jp>
169
170         * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
171
172         * src/lhlist.c (list_one): ditto.
173
174 2002-06-11  Koji Arai  <jca02266@nifty.ne.jp>
175
176         * src/lharc.c: index was wrong.
177           reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
178
179 2002-06-06  Koji Arai  <jca02266@nifty.ne.jp>
180
181         * configure.ac, configure.in: changed macro name.
182         not multibyte-char but multibyte-filename.
183         not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
184
185         * 00readme.autoconf: ditto.
186
187         * config.h.in: ditto.
188
189         * src/util.c: ditto.
190
191         * src/lha_macro.h: ditto.
192
193         * src/header.c: ditto. 
194
195         * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
196
197         * configure.ac: ditto.
198
199         * src/header.c (init_header): ditto.
200
201         * src/header.c (init_header): should clear LzHeader.
202
203 2002-06-05  Koji Arai  <jca02266@nifty.ne.jp>
204
205         * released.
206
207         * configure.ac (AC_INIT): changed package name and specified tar name.
208
209         * src/lharc.c: added `--help' command line switch.
210
211         * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
212
213         * README.autoconf, 00readme.autoconf: renamed.
214
215         * configure.ac, configure.in: updated version.
216
217 2002-06-04  Koji Arai  <jca02266@nifty.ne.jp>
218
219         * README.autoconf, header.doc.euc: describe about user/group name
220         header.
221
222         * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
223
224         * configure.ac, configure.in, config.h.in: added a switch
225         `--enable-user-name-header' whether user/name extended header is
226         made.
227
228 2002-06-01  Koji Arai  <jca02266@nifty.ne.jp>
229
230         * README.autoconf: `-i' switch of automake is deprecated.
231
232 2002-05-29  Koji Arai  <jca02266@nifty.ne.jp>
233
234         * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
235
236         * src/lha.h: define uid_t/gid_t as `int' if no have it.
237
238         * src/lhext.c (adjust_info): mismatched braces.
239
240         * header.doc.euc: around user/group name extention.
241
242         * configure.in, configure.ac, config.h.in: checks having
243         getpwuid/getgrgid and so on.
244
245         * src/header.c (get_header): use the extend header, user/group name.
246         (init_header): ditto.
247
248         * src/lha.h: added <pwd.h>, <grp.h> header includings.
249
250         * src/lhext.c (adjust_info): change owner/group according to
251         user/group name when extracting.
252
253         * src/lhlist.c (list_one): print user/group name when the header
254         has them.
255         (list_one): correct column position on OS68K.
256
257         * tests/lha-test.in: added timestamp checks.
258
259         * src/lha_macro.h: comment about OS code.
260
261 2002-05-28  Koji Arai  <jca02266@nifty.ne.jp>
262
263         * src/lharc.c (xstrdup): no need to call fatal_error().
264
265         * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
266
267         * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
268
269         * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
270         new macro name to adopt to the AC_CHECK_MEMBERS().
271
272 2002-05-27  Koji Arai  <jca02266@nifty.ne.jp>
273
274         * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
275
276         * src/header.c (filename_conv): fix a bug, reverse condition and
277         conversion for filename case.
278
279         * README.autoconf: added description about `get_filename_from_stdin' feature.
280
281         * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
282
283         * src/lharc.c (main): never set `get_filename_from_stdin` to true.
284         `echo foo | lha x foo.lzh' does not work like original LHa for UNIX.
285
286         * tests/lha-test.in: replace with #!/bin/bash.
287
288         * README.autoconf: added E-Mail address.
289
290         * configure.ac: updated version and added mail address for bug reports.
291
292         * configure.in: updated version.
293
294         * released.
295
296         * README.autoconf: added `make check' on sample description.
297
298         * configure.in, configure.ac: update version.
299
300 2002-05-26  Koji Arai  <jca02266@nifty.ne.jp>
301
302         * tests/lha-test.in: added some tests.
303
304         * tests/Makefile.am: refined.
305
306         * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
307
308         * tests/lha-test.in: added some tests.
309
310         * tests/lha-test.in: specified `q' option on print archive test.
311
312         * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
313         a new file already exists.
314
315         * src/lhext.c (extract_one): On MinGW, set binary on stdout when
316         print archive (`p' switch).
317
318         * tests/lha-test.in: added some tests.
319
320         * src/lhadd.c (report_archive_name_if_different): warning messages
321         should be printed to stderr rather than stdout.
322         (cmd_delete): ditto.
323
324         * tests/Makefile.am: fix EXTRA_DIST.
325
326         * configure.in, configure.ac: update version.
327
328         * tests/lha-test.in: added tests.
329
330         * tests/Makefile.am: ditto.
331
332         * configure.in, configure.ac, Makefile.am: ditto.
333
334 2002-05-25  Koji Arai  <jca02266@nifty.ne.jp>
335
336         * IFNAMES: updated.
337
338         * released.
339
340         * README.autoconf: added description for developpers.
341
342         * configure.in, configure.ac, config.h.in: refined.
343
344         * src/util.c (memmove): use HAVE_MEMMOVE.
345         (mkdir): use HAVE_WORKING_FORK.
346
347         * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
348
349         * IFNAMES (sony_news): updated.
350
351         * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
352         see `lha --version'.
353
354 2002-05-22  Koji Arai  <jca02266@nifty.ne.jp>
355
356         * 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:
357         added modeline for vi(m).
358
359         * src/lharc.c: backslash was missing.
360
361 2002-05-20  Koji Arai  <jca02266@nifty.ne.jp>
362
363         * src/lharc.c (open_old_archive):  On MinGW, set binary stdin.
364
365         * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
366
367         * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
368
369         * configure.ac, configure.in, README.autoconf: be able to specify
370         --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
371
372         * src/lha.h: correct usage of mkstemp().
373         On MinGW, opening file cannot be removed.
374
375         * src/lhadd.c (build_temporary_file): ditto.
376
377         * src/lharc.c (fatal_error): ditto.
378
379 2002-05-19  Koji Arai  <jca02266@nifty.ne.jp>
380
381         * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
382         no use AM_C_PROTOTYPES for the present.
383
384         * config.h.in: ditto.
385
386         * src/lharc.c (print_tiny_usage_and_exit): change credit.
387
388         * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
389
390         * src/lharc.c (print_version): ditto.
391
392         * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
393
394 2002-05-19  Koji Arai  <jca02266@nifty.ne.jp>
395
396         * released.
397
398         * src/lharc.c (print_tiny_usage_and_exit): added credit.
399         (print_version): print PLATFORM.
400
401         * configure.ac, configure.in, config.h.in: define PLATFORM.
402
403         * src/lharc.c (xstrdup): fix typo.
404
405         * configure.ac: added for autoconf-2.53.
406
407         * config.h.in: regenerate by autoconf-2.53.
408
409         * src/lharc.c (find_files): MinGW has st_ino but always 0.
410
411         * src/lharc.c (main): provisionally fix. set
412         `get_filename_from_stdin' to false.
413
414         * src/util.c (rename): use builtin rename(2) on mingw32 (since have
415         no link(2)).
416
417         * src/lharc.c (main): use xrealloc().
418
419         * src/lha_macro.h: specify "b" modifier always (for mingw32).
420
421         * src/lharc.c: use xstrdup() instead of strdup().
422
423         * src/lha_macro.h: ditto.
424
425         * src/lha_macro.h: getuid(), chown(), kill() are provisionally
426         defined as 0.
427
428         * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
429
430         * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
431         (build_backup_file): ditto.
432
433         * src/lharc.c (interrupt): ditto.
434
435         * src/lhext.c (extract_one): ditto.
436
437         * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
438         mingw32.
439
440 2002-05-18  Koji Arai  <jca02266@nifty.ne.jp>
441
442         * lha_macro.h: define bcmp(), bzero(), bcopy() even if
443         STDC_HEADERS is defined.
444
445         * huf.c (alloc_buf): call fatal_error() when memory allocation failed
446         instead of returning NULL.
447
448         * lharc.c (main): use xmalloc().
449
450         * util.c (copyfile): use xmalloc().
451
452         * slide.c (encode_alloc): use xmalloc().
453
454         * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
455         default kanji code.
456
457 2001-02-03  Koji Arai  <jca02266@nifty.ne.jp>
458
459         * README.autoconf, src/header.c: treat archive and system kanji
460         code, correctly.
461
462 2001-01-31  Koji Arai  <jca02266@nifty.ne.jp>
463
464         * configure.in: mistakes for default archive method.
465
466         * src/header.c: directory separator 0xff must be transpose slash
467         at first.
468
469 2001-01-29  Koji Arai  <jca02266@nifty.ne.jp>
470
471         * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
472         substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
473
474         * src/lha_macro.h: use the VERSION macro (defined by configure) for
475         the LHA_VERSION definition.
476
477         * src/header.c: added condition whether the macro MULTIBYTE_CHAR
478         is defined or not.
479
480         * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
481
482         * configure.in: change version number from 1.14f to 1.14i.
483         check function mkstemp().
484         replace --enable-lh6 option to --with-default-method=[567].
485
486         * config.h.in: added definitions of HAVE_MKSTEMP and
487         DEFAULT_LZHUFF_METHOD.
488
489         * IFNAMES: added a description about MKSTEMP.
490
491         * Makefile.am: added extra files.
492
493         * 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:
494         merged changing from lha-1.14f to lha-1.14i.
495
496         * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
497         import lha-114i
498
499         * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
500
501         * Makefile, README.euc, change-114g.txt, change-114h.txt:
502         import lha-114h
503
504         * 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:
505         import lha-114g
506
507         * 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:
508         import lha-114g
509
510         * src/header.c, src/lha_macro.h: implemented kanji code conversion
511         on filename.
512
513         * src/header.c: fix bug in euc2sjis().
514
515 1999-10-05  Koji Arai  <jca02266@nifty.ne.jp>
516
517         * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
518
519 1999-09-30  Koji Arai  <jca02266@nifty.ne.jp>
520
521         * 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:
522         use the autoconf/automake
523
524 1999-08-28  Koji Arai  <jca02266@nifty.ne.jp>
525
526         * Makefile: import the lha-114f
527
528         * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
529
530         * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
531         import the lha-114f
532
533         * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
534         import the lha-114f
535
536         * src/append.c, src/crcio.c: import the lha-114f
537
538         * 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:
539         import the lha-114f
540
541         * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c:
542         import the lha-114f