1 2002-06-29 Koji Arai <jca02266@nifty.ne.jp>
3 * src/append.c: replace bcopy() with memcpy() or memmove().
5 * src/lha_macro.h: ditto.
11 * src/header.c: ditto.
12 replace bzero() with memset().
14 * src/lhadd.c (cmd_add): exlclude the target archive. (reported on
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]).
21 * src/lha_macro.h: ditto.
23 * src/shuf.c (decode_c_st0): the method of -lh3- extraction was
24 fixed by DANGAN (reported on the LHa BBS [35]).
26 * src/lha_macro.h (LH3_DICBIT): ditto.
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]).
31 2002-06-26 Koji Arai <jca02266@nifty.ne.jp>
33 * tests/lha-test4: Skip a test for the LHa for UNIX (original version).
35 * tests/lha-test3: Rewrite tests for generic format.
37 * tests/lha-test2: Added tests for -lh0- method.
38 Moved from contents of lha-test3 (tests for print archive).
40 2002-06-23 Koji Arai <jca02266@nifty.ne.jp>
42 * tests/lha-test.in: On Cygwin/MinGW, cannot test lha-test9.
44 * src/lhext.c: Fixed a misspelling. not `Symblic' but `Symbolic'.
45 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
49 * src/slide.c (interface;): Fixed wrong index.
50 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
52 * 00readme.autoconf: refined.
54 * tests/lha-test9: added tests for overriding files.
56 * tests/lha-test.in: added test9.
58 * src/lhext.c (cmd_extract): ftell(stdin) will return -1, so
59 re-fixed provisionaly.
61 * src/lhext.c (cmd_extract): When error occurred in extract_one(),
62 should adjust point of file stream.
64 * configure.ac: library checkings (for libmingwex) should be done
65 before header checkings.
67 2002-06-22 Koji Arai <jca02266@nifty.ne.jp>
71 * configure.ac: updated version.
73 * src/lharc.c (init_variable): Removed useless assignments.
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?).
80 * src/lharc.c (main): [BUG]: When `q2' option is specified,
81 level 2 header is generated.
83 2002-06-21 Koji Arai <jca02266@nifty.ne.jp>
85 * tests/Makefile.am: Use the `DISTCLEANFILES' variable instead of the `dist-hook' target.
87 * tests/Makefile.am: Added `dist-hook' target for `make distcheck'.
89 * tests/lha-test.in: All tests are splited into some files.
91 * tests/Makefile.am: ditto.
93 * tests/lha-test2: ditto.
95 * tests/lha-test3: ditto.
97 * tests/lha-test4: ditto.
99 * tests/lha-test5: ditto.
101 * tests/lha-test6: ditto.
103 * tests/lha-test7: ditto.
105 * tests/lha-test8: ditto.
107 2002-06-20 Koji Arai <jca02266@nifty.ne.jp>
109 * src/lhadd.c (cmd_add): No create an intermediate file when archive
110 is written in stdout.
112 2002-06-19 Koji Arai <jca02266@nifty.ne.jp>
114 * 00readme.autoconf: Modified.
116 2002-06-18 Koji Arai <jca02266@nifty.ne.jp>
118 * configure.in: Removed. (no support the Autoconf version 2.13).
120 * config.h.in: Changed meaning of the value of the `MULTIBYTE_FILENAME'.
122 * src/header.c: Remove preprocess codes for kanji code decision.
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.
128 2002-06-17 Koji Arai <jca02266@nifty.ne.jp>
130 * configure.in, configure.ac: updated version.
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.
136 * src/lharc.c (message): use variable argument list with stdarg.
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.
145 * src/crcio.c (putcode): changed for fatal_error().
146 (putbits): changed for fatal_error().
148 (putc_euc): should return EOF when putc() cause error.
149 (fwrite_txt): changed for putc_euc().
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().
155 * src/lha.h: updated declarations.
157 * src/lhadd.c (append_it): changed for error().
159 * src/lhext.c (inquire_extract): ditto.
161 * src/lhlist.c (cmd_list): ditto.
163 * src/maketbl.c (make_table): ditto.
165 * src/util.c (copyfile): changed for fatal_error().
166 (xsnprintf): newly added to adopt to various snprintf().
168 2002-06-12 Koji Arai <jca02266@nifty.ne.jp>
170 * src/lha_macro.h (UNIX_STICKYBIT): fixed a misspelling.
172 * src/lhlist.c (list_one): ditto.
174 2002-06-11 Koji Arai <jca02266@nifty.ne.jp>
176 * src/lharc.c: index was wrong.
177 reported on LHa BBS (see <http://www2m.biglobe.ne.jp/~dolphin/>).
179 2002-06-06 Koji Arai <jca02266@nifty.ne.jp>
181 * configure.ac, configure.in: changed macro name.
182 not multibyte-char but multibyte-filename.
183 not MULTIBYTE_CHAR but MULTIBYTE_FILENAME.
185 * 00readme.autoconf: ditto.
187 * config.h.in: ditto.
191 * src/lha_macro.h: ditto.
193 * src/header.c: ditto.
195 * config.h.in (INCLUDE_OWNER_NAME_IN_HEADER): changed macro name.
197 * configure.ac: ditto.
199 * src/header.c (init_header): ditto.
201 * src/header.c (init_header): should clear LzHeader.
203 2002-06-05 Koji Arai <jca02266@nifty.ne.jp>
207 * configure.ac (AC_INIT): changed package name and specified tar name.
209 * src/lharc.c: added `--help' command line switch.
211 * Makefile.am: fixed EXTRA_DIST for 00readme.autoconf renaming.
213 * README.autoconf, 00readme.autoconf: renamed.
215 * configure.ac, configure.in: updated version.
217 2002-06-04 Koji Arai <jca02266@nifty.ne.jp>
219 * README.autoconf, header.doc.euc: describe about user/group name
222 * src/header.c (init_header): added a macro MAKE_USER_NAME_HEADER.
224 * configure.ac, configure.in, config.h.in: added a switch
225 `--enable-user-name-header' whether user/name extended header is
228 2002-06-01 Koji Arai <jca02266@nifty.ne.jp>
230 * README.autoconf: `-i' switch of automake is deprecated.
232 2002-05-29 Koji Arai <jca02266@nifty.ne.jp>
234 * configure.in, configure.ac, config.h.in: checks having uid_t/gid_t.
236 * src/lha.h: define uid_t/gid_t as `int' if no have it.
238 * src/lhext.c (adjust_info): mismatched braces.
240 * header.doc.euc: around user/group name extention.
242 * configure.in, configure.ac, config.h.in: checks having
243 getpwuid/getgrgid and so on.
245 * src/header.c (get_header): use the extend header, user/group name.
246 (init_header): ditto.
248 * src/lha.h: added <pwd.h>, <grp.h> header includings.
250 * src/lhext.c (adjust_info): change owner/group according to
251 user/group name when extracting.
253 * src/lhlist.c (list_one): print user/group name when the header
255 (list_one): correct column position on OS68K.
257 * tests/lha-test.in: added timestamp checks.
259 * src/lha_macro.h: comment about OS code.
261 2002-05-28 Koji Arai <jca02266@nifty.ne.jp>
263 * src/lharc.c (xstrdup): no need to call fatal_error().
265 * src/lhdir.h, src/lha_macro.h, src/lha.h: added modeline for vi(m).
267 * configure.ac, config.h.in: use new autoconf macro, AC_CHECK_MEMBERS().
269 * IFNAMES, configure.in, src/header.c, src/lharc.c: replaced with
270 new macro name to adopt to the AC_CHECK_MEMBERS().
272 2002-05-27 Koji Arai <jca02266@nifty.ne.jp>
274 * tests/lha-test.in: use awk instead of GNU sh-utils's `seq'.
276 * src/header.c (filename_conv): fix a bug, reverse condition and
277 conversion for filename case.
279 * README.autoconf: added description about `get_filename_from_stdin' feature.
281 * tests/lha-test.in: remove test around the `get_filename_from_stdin'.
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.
286 * tests/lha-test.in: replace with #!/bin/bash.
288 * README.autoconf: added E-Mail address.
290 * configure.ac: updated version and added mail address for bug reports.
292 * configure.in: updated version.
296 * README.autoconf: added `make check' on sample description.
298 * configure.in, configure.ac: update version.
300 2002-05-26 Koji Arai <jca02266@nifty.ne.jp>
302 * tests/lha-test.in: added some tests.
304 * tests/Makefile.am: refined.
306 * src/lhext.c (cmd_extract): discard useless fseek() calling (for MinGW).
308 * tests/lha-test.in: added some tests.
310 * tests/lha-test.in: specified `q' option on print archive test.
312 * src/lhadd.c (build_backup_file): On MinGW, cannot rename when
313 a new file already exists.
315 * src/lhext.c (extract_one): On MinGW, set binary on stdout when
316 print archive (`p' switch).
318 * tests/lha-test.in: added some tests.
320 * src/lhadd.c (report_archive_name_if_different): warning messages
321 should be printed to stderr rather than stdout.
324 * tests/Makefile.am: fix EXTRA_DIST.
326 * configure.in, configure.ac: update version.
328 * tests/lha-test.in: added tests.
330 * tests/Makefile.am: ditto.
332 * configure.in, configure.ac, Makefile.am: ditto.
334 2002-05-25 Koji Arai <jca02266@nifty.ne.jp>
340 * README.autoconf: added description for developpers.
342 * configure.in, configure.ac, config.h.in: refined.
344 * src/util.c (memmove): use HAVE_MEMMOVE.
345 (mkdir): use HAVE_WORKING_FORK.
347 * src/huf.c: use HAVE_SYS_PARAM_H instead of sony_news.
349 * IFNAMES (sony_news): updated.
351 * configure.ac, configure.in (AC_INIT): added autoconfiscated date.
354 2002-05-22 Koji Arai <jca02266@nifty.ne.jp>
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).
359 * src/lharc.c: backslash was missing.
361 2002-05-20 Koji Arai <jca02266@nifty.ne.jp>
363 * src/lharc.c (open_old_archive): On MinGW, set binary stdin.
365 * src/lhadd.c (temporary_to_new_archive_file): On MinGW, set binary stdout.
367 * src/lha_macro.h: no define TMP_FILENAME_TEMPLATE in source.
369 * configure.ac, configure.in, README.autoconf: be able to specify
370 --with-tmp-file=no which meaning TMP_FILENAME_TEMPLATE is undefined.
372 * src/lha.h: correct usage of mkstemp().
373 On MinGW, opening file cannot be removed.
375 * src/lhadd.c (build_temporary_file): ditto.
377 * src/lharc.c (fatal_error): ditto.
379 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
381 * configure.in, configure.ac: added AM_C_PROTOTYPES, AC_C_CONST.
382 no use AM_C_PROTOTYPES for the present.
384 * config.h.in: ditto.
386 * src/lharc.c (print_tiny_usage_and_exit): change credit.
388 * src/lha_macro.h: put PLATFORM in a macro LHA_VERSION.
390 * src/lharc.c (print_version): ditto.
392 * configure.ac: use AC_CANONICAL_TARGET instead of AC_CANONICAL_HOST.
394 2002-05-19 Koji Arai <jca02266@nifty.ne.jp>
398 * src/lharc.c (print_tiny_usage_and_exit): added credit.
399 (print_version): print PLATFORM.
401 * configure.ac, configure.in, config.h.in: define PLATFORM.
403 * src/lharc.c (xstrdup): fix typo.
405 * configure.ac: added for autoconf-2.53.
407 * config.h.in: regenerate by autoconf-2.53.
409 * src/lharc.c (find_files): MinGW has st_ino but always 0.
411 * src/lharc.c (main): provisionally fix. set
412 `get_filename_from_stdin' to false.
414 * src/util.c (rename): use builtin rename(2) on mingw32 (since have
417 * src/lharc.c (main): use xrealloc().
419 * src/lha_macro.h: specify "b" modifier always (for mingw32).
421 * src/lharc.c: use xstrdup() instead of strdup().
423 * src/lha_macro.h: ditto.
425 * src/lha_macro.h: getuid(), chown(), kill() are provisionally
428 * src/header.c: set `default_system_kanji_code' to Shift_JIS on mingw32.
430 * src/lhadd.c (build_temporary_file): no use SIGHUP for mingw32.
431 (build_backup_file): ditto.
433 * src/lharc.c (interrupt): ditto.
435 * src/lhext.c (extract_one): ditto.
437 * src/lhext.c (make_parent_path): mkdir() has no 2nd argument on
440 2002-05-18 Koji Arai <jca02266@nifty.ne.jp>
442 * lha_macro.h: define bcmp(), bzero(), bcopy() even if
443 STDC_HEADERS is defined.
445 * huf.c (alloc_buf): call fatal_error() when memory allocation failed
446 instead of returning NULL.
448 * lharc.c (main): use xmalloc().
450 * util.c (copyfile): use xmalloc().
452 * slide.c (encode_alloc): use xmalloc().
454 * header.c (default_system_kanji_code): On HP-UX, use Shift_JIS as
457 2001-02-03 Koji Arai <jca02266@nifty.ne.jp>
459 * README.autoconf, src/header.c: treat archive and system kanji
462 2001-01-31 Koji Arai <jca02266@nifty.ne.jp>
464 * configure.in: mistakes for default archive method.
466 * src/header.c: directory separator 0xff must be transpose slash
469 2001-01-29 Koji Arai <jca02266@nifty.ne.jp>
471 * src/lharc.c: replace MKSTEMP with HAVE_MKSTEMP.
472 substitute DEFAULT_LZHUFF_METHOD for the `compress_method' variable (it's default value).
474 * src/lha_macro.h: use the VERSION macro (defined by configure) for
475 the LHA_VERSION definition.
477 * src/header.c: added condition whether the macro MULTIBYTE_CHAR
480 * src/Makefile.am: added $(SUPPORT_LZHUFF_METHOD) in AM_CPPFLAGS.
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].
486 * config.h.in: added definitions of HAVE_MKSTEMP and
487 DEFAULT_LZHUFF_METHOD.
489 * IFNAMES: added a description about MKSTEMP.
491 * Makefile.am: added extra files.
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.
496 * change-114i.txt, src/header.c, src/huf.c, src/lha.h, src/lharc.c:
499 * src/huf.c, src/lharc.c, src/shuf.c, src/slide.c: import lha-114h
501 * Makefile, README.euc, change-114g.txt, change-114h.txt:
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:
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:
510 * src/header.c, src/lha_macro.h: implemented kanji code conversion
513 * src/header.c: fix bug in euc2sjis().
515 1999-10-05 Koji Arai <jca02266@nifty.ne.jp>
517 * src/header.c: rename the macro HANKAKU_KATAKANA_P to the X0201_KANA_P
519 1999-09-30 Koji Arai <jca02266@nifty.ne.jp>
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
524 1999-08-28 Koji Arai <jca02266@nifty.ne.jp>
526 * Makefile: import the lha-114f
528 * change-114f.txt, config.jpn.euc, header.doc.euc: import the lha-114f
530 * CHANGES.euc, MACHINES.euc, PROBLEMS.euc, README.euc, change-114e.txt, config.eng:
533 * MACHINES2.euc, man/Makefile, man/lha.man, man/lha.n:
536 * src/append.c, src/crcio.c: import the lha-114f
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:
541 * src/dhuf.c, src/extract.c, src/header.c, src/huf.c, src/larc.c, src/lhadd.c: