OSDN Git Service

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