aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * [w3m-dev-en 00780] "Carlo E. Prelz" <fluido@fluido.as>Fumitoshi UKAI2002-10-251-37/+37
| | | | | | always print on screen the relative position * display.c (displayBuffer): relative position From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev-en 00777] patch to fix w3m-0.3.1 word break problemFumitoshi UKAI2002-10-251-1/+56
| | | | | | | | | | | * file.c (is_period_char): 0x203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (is_beginning_char): 0x2018 - LEFT SINGLE QUOTATION MARK 0x2039 - SINGLE LEFT-POINTING ANGLE QUOTATION MARK (is_word_char): add several chars ifndef JP_CHARSET add ':' and '*' From: Gary Johnson <garyjohn@spk.agilent.com>
* [w3m-dev 03339] Re: Debian Bug#164098 w3m: <sup> is not properly supportedFumitoshi UKAI2002-10-101-1/+12
| | | | | | | | | | | | | | | * file.c (HTMLtagproc1): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB * html.c (TagMAP): sup, /sup, sub, /sub * html.c (HTML_SUP): added (HTML_N_SUP): added (HTML_SUB): added (HTML_N_SUB): added * table.c (feed_table_tag): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB * tagtable.tab (sup): added (/sup): added (sub): added (/sub): added From: Fumitoshi UKAI <ukai@debian.or.jp>
* Re: [w3m-dev 03320] Re: PasswordsFumitoshi UKAI2002-09-281-8/+8
| | | | | | | | | | | | | * etc.c (dir_under): same path is ok * file.c (loadGeneralFile): if missing, return NULL ssl cert already checked * html.h (URLFILE): add ssl_certificate * istream.c (ssl_get_certificate): change args * istream.h (ssl_get_certificate): ditto * url.c (openSSLHandle): add p_cert ssl certificate check here (HTTPrequest): auth_cookie fix From: AIDA Shinra <aida-s@jcom.home.ne.jp>
* [w3m-dev 03318] Re: PasswordsFumitoshi UKAI2002-09-241-116/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc.c (struct auth_path): added (passwords): added (dir_under): added (add_auth_pass_entry): added (find_auth_pass_entry): added (find_auth_user_passwd): added (loadPasswd): added (find_auth): dir_under() (add_auth_cookie): check file * file.c (find_auth_user_passwd): removed (getAuthCookie): use delText() check proxy (get_auth_cookie): removed (loadGeneralFile): auth_pu * proto.h (schemeToProxy): added (get_auth_cookie): removed (loadPasswd): added (find_auth_user_passwd): added * rc.c (sync_with_option): loadPasswd() * textlist.c (delValue): added * textlist.h (delValue): added (delText): added * url.c (HTTPrequest): seen_www_auth (schemeToProxy): added From: AIDA Shinra <aida-s@jcom.home.ne.jp>
* [w3m-dev 03311] Re: PasswordsFumitoshi UKAI2002-09-111-1/+3
| | | | | | * configure (config.h): default PASSWD_FILE * fm.h (passwd_file): default PASSWD_FILE From: Yuuichi Teranishi <teranisi@gohome.org>
* if wrong password, dont read passwd_fileFumitoshi UKAI2002-09-101-2/+3
|
* fcloseFumitoshi UKAI2002-09-101-2/+3
|
* [w3m-dev 03307] add password_file supportFumitoshi UKAI2002-09-101-41/+132
| | | | | | | | * file.c (find_auth_user_passwd): added * fm.h (passwd_file): added * rc.c (CMT_PASSWDFILE): added (passwdfile): added From: Fumitoshi UKAI <ukai@debian.or.jp>
* run indentFumitoshi UKAI2002-08-271-2/+2
|
* Debian Bug#157098: wrong file presentation on large filesFumitoshi UKAI2002-08-201-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | from "Eduard Bloch" <blade@debian.org> * configure (clen_t): added (HAVE_STRTOLL): added (HAVE_STRTOQ): added (HAVE_ATOLL): added (HAVE_ATOQ): added * config.h.dist: ditto * file.c (current_content_length): s/int/clen_t/ (loadGeneralFile): s/atoi/strtoclen/ (convert_size): s/int/clen_t/ (convert_size2): s/int/clen_t/ (showProgress): s/int/clen_t/ (loadHTMLstream): s/int/clen_t/ linelen, trbyte (loadBuffer): ditto (getNextPage): s/int/clen_t/ linelen (save2tmp): s/int/clen_t/ linelen, trbye (_MoveFile): s/int/clen_t/ linelen, trbye * fm.h (_Buffer): s/int/clen_t/ linelen, trbye * ftp.c (size_int2str): s/long/clen_t/ (ex_ftpdir_name_size_date): s/long/clen_t/ * indep.c (strtoclen): added * indep.h (strtoclen): added * proto.h (showProgress): s/int/clen_t/ From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03276] compile error on EWS4800Fumitoshi UKAI2002-07-191-2/+2
| | | | | | * file.c (extract_auth_val): fix warnings * w3mimg/w3mimg.c: include <stdlib.h> From: Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
* [w3m-dev 03233] "obuf->flag |= RB_IGNORE_P" after <body> tagFumitoshi UKAI2002-06-241-2/+1
| | | | | * file.c (HTMLtagproc1): no need RB_IGNORE_P after <body> tag From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev-en 00752] Re: tab completion weirdness in w3m 0.3Fumitoshi UKAI2002-06-091-5/+9
| | | | | * file.c (doFileCopy): same fix as [w3m-dev-en 00751] From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03191] typo in file.c:extract_auth_val()?Fumitoshi UKAI2002-05-141-2/+2
| | | | | * file.c (extract_auth_val): s/177/0177/ From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03176] no Content-Type in http response headerFumitoshi UKAI2002-04-171-1/+3
| | | | | * file.c (loadGeneralFile): guess content-type from filename From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 03167] xface2xbm -> xface2xpm (current imlib can't handle XBM)Fumitoshi UKAI2002-04-091-9/+11
| | | | | | | | | | | * configure: s/XFACE2XBM/XFACE2XPM/ * config.h.dist: ditto * file.c (xface2xpm): renamed from xface2xbm modified for xpm (readHeader): s/xface2xbm/xface2xpm/ * scripts/Makefile (LIB_TARGETS): s/xface2xbm/xface2xpm/ * scripts/xface2xpm.in: added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03135] commit of [w3m-dev 03006] is incomplete.Fumitoshi UKAI2002-03-191-3/+6
| | | | | | | * file.c (HTMLlineproc2body): check form_int fid attr update forms[] fix buf->formlist From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* indent fixFumitoshi UKAI2002-03-151-6/+8
|
* [w3m-dev 03132] Re: Reload imageFumitoshi UKAI2002-03-151-4/+7
| | | | | | | | | | | * file.c (loadGeneralFile): b->type = "text/html" * file.c (loadImageBuffer): comment out getImageSize() image_flag = IMG_FLAG_AUTO * file.c (openGeneralPagerBuffer): buf->type = "text/html" * frame.c (resetFrameElement): if (buf->mailcap_source) ... * frame.c (frame_download_source): if (buf->mailcap_source) ... * main.c (vwSrc): #ifdef USE_IMAGE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03129] Re: X-FaceFumitoshi UKAI2002-03-141-4/+20
| | | | | | | | | | | | | | | | * configure (use_xface): ask * fm.h (_Buffer): add header_source * buffer.c (reshapeBuffer): fix reshape when reading stdin with image fix disappearing header when reading stdin * file.c (xface2xbm): check file existence * file.c (readHeader): save to tmp file X-Face when activeImage & displayImage * main.c (dispI): comment out checking content type * main.c (stopI): ditto * scripts/xface2xbm.in: update compface URL read from file $XF write to file $XBM From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03127] X-FaceFumitoshi UKAI2002-03-131-1/+42
| | | | | | | | | | | | * NEWS: X-Face support * configure (use_xface): added * config.h.dist (USE_XFACE): added (XFACE2XBM): added * file.c (xface2xbm): added (readHeader): X-Face: handling * scripts/Makefile (LIB_TARGETS): add xface2xbm * scripts/xface2xbm.in: added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03125] w3m -m < imageFumitoshi UKAI2002-03-131-1/+10
| | | | | * file.c (openGeneralPagerBuffer): use internal viewer for -m option From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03116] Re: aligned block in <td align="center">Fumitoshi UKAI2002-03-121-1/+4
| | | | | | | | | * file.c (flushline): align if align="align" * fm.h (RB_LEFT): change value (RB_ALIGN): include RB_LEFT (RB_INTABLE): added * table.c (do_refill): obuf.flag |= RB_INTABLE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03110] Re: gopher brokenFumitoshi UKAI2002-03-111-1/+3
| | | | | * file.c (loadGeneralFile): #ifdef USE_GOPHER From: WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
* [w3m-dev 03106] Re: displayBufferFumitoshi UKAI2002-03-101-1/+2
| | | | | | * display.c (displayBuffer): revert previous changes * file.c (process_img): remove space in src attribute From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03095] Re: gopher brokenFumitoshi UKAI2002-03-081-4/+5
| | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGopherDir): html_quote(url_quote_conv()) From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03092] Reload imageFumitoshi UKAI2002-03-081-1/+2
| | | | | * file.c (loadImageBuffer): cache->index = 0 From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03093] Re: gopher brokenFumitoshi UKAI2002-03-081-37/+38
| | | | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGopherDir): fix ->ptr q should be url_quote() * url.c (openURL): url_unquote() for gopher selector From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03090] Re: gopher brokenFumitoshi UKAI2002-03-081-51/+60
| | | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (loadGeneralFile): if loadGopherDir, type is real_type * file.c (loadGopherDir): rewrite to use loadHTMLstream() From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03088] gopher brokenFumitoshi UKAI2002-03-081-2/+3
| | | | | | | (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI) * file.c (form_max): initial value should be -1 * file.c (loadGopherDir): </A> From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03084] A temporary file remains when pipe + 'v'Fumitoshi UKAI2002-03-051-12/+5
| | | | | | | | | * proto.h (saveBufferDelNum): deleted * file.c (saveBufferDelNum): deleted * file.c (saveBuffer): saveBufferDelNum() renamed * main.c (vwSrc): tmpfname() recorded as fileToDelete use saveBuffer() instead of saveBufferDelNum() From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03073] frame + imageFumitoshi UKAI2002-02-281-2/+6
| | | | | | * file.c (loadGeneralFile): w3m_dump & ~DUMP_FRAME * file.c (loadImageBuffer): comment out if (frame_source) From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 03072] Proxy-Authorization (Re: Re: https through proxy)Fumitoshi UKAI2002-02-281-6/+2
| | | | | | | | | | | | | | * file.c (loadGeneralFile) delete Proxy-Authorization set here * fm.h (HR_FLAG_PROXY): added * main.c (MAIN): need "Basic " for proxy_auth_cookie * url.c (HTTPrequest): add seen_proxy_auth if proxy and no Proxy-Authorization: header seen and has proxy_auth_cookie, use it * url.c (openURL): hr->flag |= HR_FLAG_PROXY * file.c (loadGeneralFile) comment indent fix * html.c (TagMAP): ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03067] Re: https through proxyFumitoshi UKAI2002-02-261-2/+2
| | | | | * file.c (loadGeneralFile): comment out ssl_get_certificate here From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03057] Re: Bug#134350: w3m: Forgets (http auth) login information ↵Fumitoshi UKAI2002-02-191-11/+29
| | | | | | | | | | | | | | | | | | | | | | | upon reload (or almost anything else) * etc.c (find_auth): add `file' check file as well * etc.c (find_auth_cookie): add `file' * etc.c (add_auth_cookie): add `file' * file.c (AuthBasicCred): add "Basic " * file.c (AuthDigestCred): add "Digest " * file.c (getAuthCookie): if h_auth == NULL, get recorded cookie * file.c (get_auth_cookie): get recorded cookie * file.c (loadGeneralFile): don't clear add_auth_cookie_flag by redirection add_auth_cookie if authorization is required and passed * fm.h (auth_cookie): add file * ftp.c (openFTP): follow change auth_cookie * proto.h (get_auth_cookie): added * proto.h (find_auth_cookie): add `file' * proto.h (add_auth_cookie): add `file' * url.c (openURL): get_auth_cookie From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 03011] segmentation fault on <input> tag without <form>Fumitoshi UKAI2002-02-081-2/+4
| | | | | * file.c (process_input): tmp initialization fix From: Tsutomu Okada <okada@furuno.co.jp>
* [w3m-dev 03006] fix form order in tableFumitoshi UKAI2002-02-071-13/+25
| | | | | | | | | | | * file.c (process_form): static fix form index order method should be quoted * file.c (process_form): added * file.c (HTMLlineproc2body): add form_id * html.c (ALST_FORM_INT): added * html.c (form_int): update From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02999] don't ask accept bad cert when background downloadingFumitoshi UKAI2002-02-061-1/+5
| | | | | | * file.c (getAuthCookie): if QuietMessage, return NULL * file.c (inputAnswer): if QuietMessage, input "n" From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02991] form support in w3m -halfdump foo.html|w3m -halfloadFumitoshi UKAI2002-02-051-37/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fm.h (DUMP_HALFEXTRA): deleted * proto.h (process_select): return Str * file.c (process_img): process_form() fix * file.c (process_input): process_form() fix * file.c (process_select): return Str process_form() fix * file.c (process_textarea): process_form() fix * file.c (process_form): support -halfdump * file.c (HTMLtagproc1): delete case HTML_FORM_INT, HTML_N_FORM_INT process_{form,select,textarea}() fix * file.c (HTMLlineproc2body): support -halfload HTML_INTERNAL, HTML_N_INTERNAL, HTML_FORM_INT, HTML_FORM_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT, HTML_SELECT_INT, HTML_N_SELECT_INT, HTML_OPTION_INT, HTML_TITLE_ALT * file.c (print_internal_information): fix -halfdump * file.c (loadHTMLstream): no DUMP_HALFEXTRA * html.h: add HTML_INTERNAL, HTML_N_INTERNAL, HTML_SELECT_INT, HTML_N_SELECT_INT, HTML_OPTION_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT * html.c (ALST_TEXTAREA_INT): added * html.c (ALST_SELECT_INT): added * html.c: add <internal>, </internal>, <select_int>, </select_int> <option_int>, <textarea_int>, </textarea_int> * main.c (MAIN): delete -halfdump_extra dont output <pre> by -halfdump * table.c (feed_table_tag): process_{form,select}() fix add case HTML_INTERNAL, HTML_N_INTERNAL, HTML_SELECT_INT, HTML_N_SELECT_INT, HTML_OPTION_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT, * tagtable.tab: add internal, /internal, select_int, /select_int option_int, textarea_int, /textarea_int From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02990]Fumitoshi UKAI2002-02-051-9/+9
| | | | | | * file.c (doFileCopy): use Strfgets() instead of fgets() * file.c (doFileSave): ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02989]Fumitoshi UKAI2002-02-051-4/+2
| | | | | * file.c (inputAnswer): use Strfgets() instead of fgets() From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02984] inline image improvements and cleanupsFumitoshi UKAI2002-02-041-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * config.h.dist (HAVE_SYMLINK) added * config.h.dist (HAVE_LSTAT): added * configure: symlink() check * configure: lstat() check * fm.h (maxLoadImage): added * form.c (form_write_from_file): s/HAVE_READLINK/HAVE_LSTAT/ * image.c: include <sys/stat.h> * image.c (MAX_LOAD_IMAGE): default 8 * image.c (max_load_image): deleted * image.c (n_load_image): added * image.c (showImageProgress): added * image.c (loadImage): check load image count s/HAVE_READLINK/HAVE_LSTAT/ (HAVE_SYMLINK) showImageProgress * local.c: include <sys/stat.h> s/HAVE_READLINK/HAVE_LSTAT/ * rc.c (CMT_MAX_LOAD_IMAGE): added * rc.c (max_load_image): added * doc/README.img: update [w3m-dev 02986] * file.c (print_internal_information): Don't print boundaries. Use henv->f instead of stdout. From: TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
* [w3m-dev 02984] inline image improvements and cleanupsFumitoshi UKAI2002-02-041-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | * config.h.dist (HAVE_SYMLINK) added * config.h.dist (HAVE_LSTAT): added * configure: symlink() check * configure: lstat() check * fm.h (maxLoadImage): added * form.c (form_write_from_file): s/HAVE_READLINK/HAVE_LSTAT/ * image.c: include <sys/stat.h> * image.c (MAX_LOAD_IMAGE): default 8 * image.c (max_load_image): deleted * image.c (n_load_image): added * image.c (showImageProgress): added * image.c (loadImage): check load image count s/HAVE_READLINK/HAVE_LSTAT/ (HAVE_SYMLINK) showImageProgress * local.c: include <sys/stat.h> s/HAVE_READLINK/HAVE_LSTAT/ * rc.c (CMT_MAX_LOAD_IMAGE): added * rc.c (max_load_image): added * doc/README.img: update * doc-jp/README.img: update * file.c (process_img): pre_int fix From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02985] inputAnswer() and no "ssl_forbid_method"Fumitoshi UKAI2002-02-041-3/+3
| | | | | | | * file.c (inputAnswer): buf size is 80 * url.c (openSSLHandle): if old_ssl_forbid_method == ssl_forbid_method ssl path is not modified From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02979] code_to_str not found ifndef JP_CHARSETFumitoshi UKAI2002-02-031-1/+3
| | | | | * file.c (print_internal_information): ifdef JP_CHARSET From: Kazuhiko <kazuhiko@archi.kyoto-u.ac.jp>
* [w3m-dev 02964] Print data of forms when halfdump option is setFumitoshi UKAI2002-02-031-3/+68
| | | | | | | | | | | | * backend.c (print_headers): print w3m-current-url and w3m-base-url * backend.c (print_formlist): deleted * backend.c (internal_get): remove "if (buf->formlist) {}" * file.c (print_internal_information): added * file.c (loadHTMLstream): if halfdump, print_internal_information if w3m_backend, print_internal_information * fm.h (DUMP_HALFEXTRA): added * main.c (-halfdump_extra): added From: TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp>
* [w3m-dev 02968] fix problem with Netscape-Enterprise WWW-authenticateFumitoshi UKAI2002-02-011-2/+2
| | | | | * file.c (findAuthentication): token is case insensitive From: Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02961] halfdump image is not consistentFumitoshi UKAI2002-01-311-7/+6
| | | | | | * file.c (flushline): check f * file.c (do_blankline): fix blanklink conditions From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* gcc -Wall -Werror safeFumitoshi UKAI2002-01-311-5/+5
| | | | | | | | | | | | | | | | | | | | * anchor.c (addMultirowsImg): unused variable: fi * display.c (redrawLineImage): unused variable: ncol * file.c (process_img): uninitialized variables: r2, ni, w0, i0, ismap unused variable: url, ext * file.c (loadHTMLstream): need volatile image_flag * image.c (image_index): int * image.c (getCharSize): need prototype * image.c (getImage): uninitialized variable: key return NULL * map.c (follow_map_menu): used only USE_IMAGE: px, py, map * map.c (newMapArea): used only USE_IMAGE: p, i, max * proto.h (addMultirowsImg): added * w3mimgdisplay.c (main): format string fix * w3mimgdisplay.c (DrawImage): need (Pixmap) cast * inflate.c: indent From: Fumitoshi UKAI <ukai@debian.or.jp>