diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-23 14:24:22 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-23 14:24:22 +0000 |
commit | 0ca52ddb170b5f7825606e533727f1b4f9a44235 (patch) | |
tree | 5d3156a6a8b694cf105691e1eae8433cb293e4b2 | |
parent | [w3m-dev 02696] (diff) | |
download | w3m-0ca52ddb170b5f7825606e533727f1b4f9a44235.tar.gz w3m-0ca52ddb170b5f7825606e533727f1b4f9a44235.zip |
[w3m-dev 02699] initialization too late
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | main.c | 21 |
2 files changed, 27 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2001-12-23 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 02699] initialization too late + * main.c (MAIN): initializations moved before arg processing + * debian bug closes: Bug##102445: ignores SIGWINCH while downloading + 2001-12-22 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> * [w3m-dev 02696] @@ -1437,4 +1443,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.161 2001/12/22 10:02:04 ukai Exp $ +$Id: ChangeLog,v 1.162 2001/12/23 14:24:22 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.40 2001/12/19 18:16:18 ukai Exp $ */ +/* $Id: main.c,v 1.41 2001/12/23 14:24:22 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -667,6 +667,25 @@ MAIN(int argc, char **argv, char **envp) if (COLS == 0) COLS = 80; } + + SearchHeader = FALSE; + DefaultType = NULL; +#ifdef JP_CHARSET + UseContentCharset = TRUE; + UseAutoDetect = TRUE; +#endif + + if (isatty(1)) { +#ifdef SIGWINCH + signal(SIGWINCH, resize_hook); +#else /* not SIGWINCH */ + setlinescols(); + setupscreen(); +#endif /* not SIGWINCH */ + } +#ifdef SIGCHLD + signal(SIGCHLD, sig_chld); +#endif #ifdef USE_BINMODE_STREAM setmode(fileno(stdout), O_BINARY); #endif |