w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 45aaf23dce6267925947f4c29b0a39e9462a92f9
parent a3380df380bde3e5f14e9c8ad2dbb2a30cb8cbb2
Author: ukai <ukai>
Date:   Sun, 23 Dec 2001 14:24:22 +0000

[w3m-dev 02699] initialization too late
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 6++++++
Mmain.c | 19+++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -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] diff --git a/main.c b/main.c @@ -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