aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1998-10-24 17:18:27 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1998-10-24 17:18:27 -0400
commit76259b749d342c74f489e2cc451c09f66873af4c (patch)
tree7df2b23b2d9cbda8034272a1ee430f27b494b27e
parent227916a0760fb81d8dd539790a76bf76eceb8e4e (diff)
downloadlynx-snapshots-76259b749d342c74f489e2cc451c09f66873af4c.tar.gz
snapshot of project "lynx", label v2-8-1rel_1
-rw-r--r--CHANGES32
-rw-r--r--WWW/Library/Implementation/HTFWriter.c4
-rw-r--r--WWW/Library/Implementation/HTTCP.c70
-rw-r--r--WWW/Library/Implementation/tcp.h3
-rwxr-xr-xcfg_defs.sh21
-rw-r--r--lynx.cfg20
-rw-r--r--lynx_help/keystrokes/option_help.html2
-rw-r--r--lynx_help/lynx_help_main.html129
-rw-r--r--src/LYClean.c3
-rw-r--r--src/LYCookie.c15
-rw-r--r--src/LYGlobalDefs.h1
-rw-r--r--src/LYMain.c151
-rw-r--r--src/LYMainLoop.c2
-rw-r--r--src/LYOptions.c22
-rw-r--r--src/LYReadCFG.c8
-rw-r--r--src/LYUtils.c4
-rw-r--r--src/chrtrans/makeuctb.c2
-rw-r--r--userdefs.h6
18 files changed, 269 insertions, 226 deletions
diff --git a/CHANGES b/CHANGES
index 5c652221..a21722d9 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,28 @@
Changes since Lynx 2.8 release
================================================================================
+1998-10-24 (2.8.1rel.1)
+* reorganize lynx_help_main.html - PW
+* minor change to WWW/.../tcp.h to eliminate redefinition warning by DEC C - TD
+* move checking for command-line "-head" and related options before curses
+ initialization so that program exits with correct terminal settings
+ (report by LV, fix by BL).
+* correct uninitialized index into id_append in makeuctb, which causes problems
+ with def7_uni.tbl (analysis by LP)
+* add TAGSOUP flag to lynx.cfg to set initial state of Tag Soup vs SortaSGML
+ (request by LP) - TD
+* add PERSISTENT_COOKIES flag to lynx.cfg to allow disabling the persistent
+ cookies feature in a Lynx executable (request by BJP) - TD
+* modify read_cfg so that it does not display included-file information when
+ NO_CONFIG_INFO is defined (reported by LP) - TD
+* minor/cosmetic fixes for comments and documentation - LP
+* revised patch for nsl-fork, which does not rely on WNOWAIT definition - BL
+* include termio.h in LYCurses.c only #ifdef TERMIO_AND_CURSES (Philippe
+ De Muyter <phdm@macqel.be>)
+* modify cfg_defs.sh to work when the 'set' command emits double-quotes
+ (pg@sweng.stortek.com)
+* update obsolete copy of HTFWriter.c to add content-encoding for HTFileSuffix
+ (reported by David Helder <dhelder@umich.edu) - TD
1998-10-17 (2.8.1pre.11)
* add dependency on cfg_defs.h to src/makefile.in for LYShowInfo.o
(pg@sweng.stortek.com)
@@ -11,14 +33,14 @@ Changes since Lynx 2.8 release
correctly for any LYRawMode value by synchronizing gen_options() and
postoptions() via rawmode memory - LP
* correct ifdef'ing in LYShowInfo.c for non-Unix platforms - LP
-* modify waitpid logic in nsl-fork support to handle a case where the child
- process exits without reporting anything (reported by Serge Munhoven) - BL
+* modify nsl_fork logic to handle a case where child exits successfully
+ right after parent's select timed out (reported by Serge Munhoven) - BL
* small updates to lynx_help files and other documentation (BJP, PW, LV).
* add #define's for later work to simplify configuring the maximum number
of cookies (suggested by BJP) - TD
-* flush output in makeuctb, to fix build problems on systems that do not
- implement POSIX 'exit()' call -- including Digital Unix 4.0 (reported by
- Serge Munhoven <munhoven@mema.ucl.ac.be>) - TD
+* flush output in makeuctb, as possible fix for build problems on systems that
+ do not implement POSIX 'exit()' call (reported by Serge Munhoven
+ <munhoven@mema.ucl.ac.be> and Jan Hlavacek <lahvak@math.ohio-state.edu>) - TD
* put GOTOBUFFER, JUMPBUFFER and QUIT_DEFAULT_YES back the way they used to be
(majority decision) - TD
1998-10-14 (2.8.1pre.10)
diff --git a/WWW/Library/Implementation/HTFWriter.c b/WWW/Library/Implementation/HTFWriter.c
index 8bccb379..435fd3e8 100644
--- a/WWW/Library/Implementation/HTFWriter.c
+++ b/WWW/Library/Implementation/HTFWriter.c
@@ -248,7 +248,7 @@ PUBLIC HTStream* HTSaveAndExecute ARGS3(
/* Save the file under a suitably suffixed name */
- suffix = HTFileSuffix(pres->rep);
+ suffix = HTFileSuffix(pres->rep, anchor->content_encoding);
fnam = (char *)malloc (L_tmpnam + 16 + strlen(suffix));
tmpnam (fnam);
@@ -326,7 +326,7 @@ PUBLIC HTStream* HTSaveLocally ARGS3(
/* Save the file under a suitably suffixed name */
- suffix = HTFileSuffix(pres->rep);
+ suffix = HTFileSuffix(pres->rep, anchor->content_encoding);
fnam = (char *)malloc (L_tmpnam + 16 + strlen(suffix));
tmpnam (fnam);
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c
index e94f4f2f..ba4a4b0f 100644
--- a/WWW/Library/Implementation/HTTCP.c
+++ b/WWW/Library/Implementation/HTTCP.c
@@ -449,13 +449,11 @@ PUBLIC int HTParseInet ARGS2(
** control variables.
*/
pid_t fpid, waitret;
- int pfd[2], cstat, cst1 = 0, cycle = 0;
+ int pfd[2], h_length, selret, readret, waitstat = 0, cycle = 0;
fd_set readfds;
struct timeval timeout;
int dns_patience = 30; /* how many seconds will we wait for DNS? */
-#ifdef WNOWAIT
int child_exited = 0;
-#endif
/*
** Reap any children that have terminated since last time
@@ -496,12 +494,12 @@ PUBLIC int HTParseInet ARGS2(
** native int).
*/
if (OK_HOST(phost))
- cstat = phost->h_length;
+ h_length = phost->h_length;
else
- cstat = 0;
- write(pfd[1], &cstat, sizeof cstat);
+ h_length = 0;
+ write(pfd[1], &h_length, sizeof h_length);
- if (cstat) {
+ if (h_length) {
/*
** Return value through pipe...
*/
@@ -549,54 +547,56 @@ PUBLIC int HTParseInet ARGS2(
*/
#ifdef SOCKS
if (socks_flag)
- cst1 = Rselect(pfd[0] + 1, (void *)&readfds, NULL, NULL, &timeout);
+ selret = Rselect(pfd[0] + 1, (void *)&readfds, NULL, NULL, &timeout);
else
#endif /* SOCKS */
- cst1 = select(pfd[0] + 1, (void *)&readfds, NULL, NULL, &timeout);
+ selret = select(pfd[0] + 1, (void *)&readfds, NULL, NULL, &timeout);
- if ((cst1 > 0) && FD_ISSET(pfd[0], &readfds)) {
+ if ((selret > 0) && FD_ISSET(pfd[0], &readfds)) {
/*
** First get length of address. -BL
*/
- cst1 = read(pfd[0], (void *)&cstat, sizeof cstat);
- if (cstat == sizeof soc_in->sin_addr) {
+ readret = read(pfd[0], (void *)&h_length, sizeof h_length);
+ if (readret == sizeof h_length &&
+ h_length == sizeof soc_in->sin_addr) {
/*
** Then get address itself. -BL
*/
- cst1 = read(pfd[0], (void *)&soc_in->sin_addr, cstat);
- if (cst1 == cstat) success = 1;
+ readret = read(pfd[0], (void *)&soc_in->sin_addr, h_length);
+ if (readret == h_length) success = 1;
}
/*
** Make sure child is cleaned up. -BL
*/
- waitret = waitpid(fpid, &cst1, WNOHANG);
- if (!WIFEXITED(cst1) && !WIFSIGNALED(cst1)) {
+ if (!child_exited)
+ waitret = waitpid(fpid, &waitstat, WNOHANG);
+ if (!WIFEXITED(waitstat) && !WIFSIGNALED(waitstat)) {
kill(fpid, SIGTERM);
- waitret = waitpid(fpid, &cst1, WNOHANG);
+ waitret = waitpid(fpid, &waitstat, WNOHANG);
}
break;
}
-#ifdef WNOWAIT
/*
** Clean up if child exited before & no data received. -BL
*/
if (child_exited) {
- waitret = waitpid(fpid, &cst1, WNOHANG);
+ waitret = waitpid(fpid, &waitstat, WNOHANG);
break;
}
/*
** If child exited, loop once more looking for data. -BL
*/
- if ((waitret = waitpid(fpid, &cst1, WNOHANG | WNOWAIT)) > 0)
+ if ((waitret = waitpid(fpid, &waitstat, WNOHANG)) > 0) {
+ /*
+ ** Data will be arriving right now, so make sure we
+ ** don't short-circuit out for too many loops, and
+ ** skip the interrupt check. -BL
+ */
child_exited = 1;
-#else
- /*
- ** End loop if child exited.
- */
- if ((waitret = waitpid(fpid, &cst1, WNOHANG)) > 0)
- break;
-#endif
+ cycle--;
+ continue;
+ }
/*
** Abort if interrupt key pressed.
@@ -613,24 +613,24 @@ PUBLIC int HTParseInet ARGS2(
close(pfd[0]);
if (waitret <= 0) {
kill(fpid, SIGTERM);
- waitret = waitpid(fpid, &cst1, WNOHANG);
+ waitret = waitpid(fpid, &waitstat, WNOHANG);
}
if (waitret > 0) {
- if (WIFEXITED(cst1)) {
+ if (WIFEXITED(waitstat)) {
CTRACE(tfp, "HTParseInet: NSL_FORK child %d exited, status 0x%x.\n",
- (int)waitret, cst1);
- } else if (WIFSIGNALED(cst1)) {
+ (int)waitret, waitstat);
+ } else if (WIFSIGNALED(waitstat)) {
CTRACE(tfp, "HTParseInet: NSL_FORK child %d got signal, status 0x%x!\n",
- (int)waitret, cst1);
+ (int)waitret, waitstat);
#ifdef WCOREDUMP
- if (WCOREDUMP(cst1)) {
+ if (WCOREDUMP(waitstat)) {
CTRACE(tfp, "HTParseInet: NSL_FORK child %d dumped core!\n",
(int)waitret);
}
#endif /* WCOREDUMP */
- } else if (WIFSTOPPED(cst1)) {
+ } else if (WIFSTOPPED(waitstat)) {
CTRACE(tfp, "HTParseInet: NSL_FORK child %d is stopped, status 0x%x!\n",
- (int)waitret, cst1);
+ (int)waitret, waitstat);
}
}
if (!success) {
diff --git a/WWW/Library/Implementation/tcp.h b/WWW/Library/Implementation/tcp.h
index 3ebff46f..fba85b5b 100644
--- a/WWW/Library/Implementation/tcp.h
+++ b/WWW/Library/Implementation/tcp.h
@@ -295,6 +295,7 @@ extern char *vms_errno_string();
#include <time.h>
#include <types.h>
#ifdef __TIME_T
+#undef __TYPES
#define __TYPES 1
#define __TYPES_LOADED 1
#endif /* __TIME_T */
@@ -307,9 +308,11 @@ extern char *vms_errno_string();
#endif /* !__SOCKET_TYPEDEFS */
#include "multinet_root:[multinet.include]errno.h"
#ifdef __TYPES
+#undef __TIME_T
#define __TIME_T 1
#endif /* __TYPE */
#ifdef __TIME_LOADED
+#undef __TIME
#define __TIME 1 /* to avoid double definitions in in.h */
#endif /* __TIME_LOADED */
#include "multinet_root:[multinet.include.sys]time.h"
diff --git a/cfg_defs.sh b/cfg_defs.sh
index ee698506..d20a77f7 100755
--- a/cfg_defs.sh
+++ b/cfg_defs.sh
@@ -11,6 +11,25 @@ static CONST struct {
CONST char *value;
} config_cache[] = {
EOF
+
+# Empirical test for format of config.cache.
+# I'd welcome a better touchstone.
+# Ideally, "configure" should generate a uniform format config.cache.
+# -- gil
+case `grep '^ac_cv_func_' config.cache | head -1` in
+
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ *{*'="'* )
+ sed \
+ -e '/^#/d' \
+ -e 's/^.[^=]*_cv_/ { "/' \
+ -e 's/=\${.*=/", /' \
+ -e 's/}$/ },/' \
+ config.cache | sort
+ ;;
+ # `set' does not quote correctly, so add quotes
+ # ( cf. configure script's building config.cache )
+ * )
sed -e '/^#/d' \
-e 's/"/\\"/g' \
-e 's/=}$/=""}/' \
@@ -21,6 +40,8 @@ sed -e '/^#/d' \
-e 's/"}$/}/' \
-e 's/}$/" },/' \
config.cache | sort
+ ;; esac
+
cat <<EOF
};
diff --git a/lynx.cfg b/lynx.cfg
index 8bd2287c..71ad9656 100644
--- a/lynx.cfg
+++ b/lynx.cfg
@@ -180,7 +180,8 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
# Lynx normally translates characters from document's charset to display
# charset, using ASSUME_CHARSET value (see below) if document's charset is not
# specified explicitly. There is the so called `raw or CJK mode' which is OFF
-# for this case.
+# for this case. (When the document charset specified explicitly
+# it override any assumption like ASSUME_CHARSET or raw or CJK mode).
#
# For the Asian (CJK) display character sets the corresponding charset is
# assumed in documents, i.e., raw or CJK mode is ON by default. In raw CJK
@@ -235,7 +236,7 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
# Latin 4 (ISO-8859-4) iso-8859-4
# Baltic Rim (cp775) cp775
# Baltic Rim (windows-1257) windows-1257
-# Cyrillic (ISO-8859-5) is-8859-5
+# Cyrillic (ISO-8859-5) iso-8859-5
# Cyrillic (cp866) cp866
# Cyrillic (windows-1251) windows-1251
# Cyrillic (KOI8-R) koi8-r
@@ -323,7 +324,7 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
# we need to limit outgoing mail character repertoire to reduce
# trouble for remote recipient who may not recognize our charset.
# You may try US-ASCII as the safest value (7 bit), any other MIME name
-# or leave this field blanc (default) to use display character set.
+# or leave this field blank (default) to use display character set.
# (Translation currently implemented for mail "subjects= " only).
#
#OUTGOING_MAIL_CHARSET:
@@ -354,12 +355,12 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
# The value should NOT include "ISO-8859-1" or "US-ASCII",
# since those values are always assumed by default.
# If a file in that character set is available, the server will send it.
-# If no Accept-Charset header is present, the default is that any
+# "If no Accept-Charset header is present, the default is that any
# character set is acceptable. If an Accept-Charset header is present,
# and if the server cannot send a response which is acceptable
# according to the Accept-Charset header, then the server SHOULD send
# an error response with the 406 (not acceptable) status code, though
-# the sending of an unacceptable response is also allowed. (RFC2068)
+# the sending of an unacceptable response is also allowed." (RFC2068)
#
#PREFERRED_CHARSET:
@@ -800,6 +801,11 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
#
#COLLAPSE_BR_TAGS:TRUE
+# If TAGSOUP is set, Lynx uses the "Tag Soup DTD" rather than "SortaSGML".
+# The two approaches differ by the style of error detection and recovery.
+# Tag Soup DTD allows for improperly nested tags; SortaSGML is stricter.
+#TAGSOUP:FALSE
+
# If SET_COOKIES is set FALSE, Lynx will ignore Set-Cookie headers
# in http server replies.
# The default is defined in userdefs.h, and can be overridden here,
@@ -829,6 +835,10 @@ DEFAULT_INDEX_FILE:http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html
# can also be specified in .lynxrc or on the commandline.
#COOKIE_FILE:~/.lynx_cookies
+# PERSISTENT_COOKIES is tested only if Lynx was compiled with
+# EXP_PERSISTENT_COOKIES. Use this flag to disable the feature.
+#PERSISTENT_COOKIES:TRUE
+
# VMS:
#=====
# The mail command and qualifiers are defined in userdefs.h. Lynx
diff --git a/lynx_help/keystrokes/option_help.html b/lynx_help/keystrokes/option_help.html
index c2efc919..fad258c5 100644
--- a/lynx_help/keystrokes/option_help.html
+++ b/lynx_help/keystrokes/option_help.html
@@ -159,7 +159,7 @@ for beginners.
<H1><A NAME="VB">Verbose Images</A></H1>
-Controls whether or not Lynx replaces the [LINK], INLINE] and [IMAGE] comments
+Controls whether or not Lynx replaces the [LINK], [INLINE] and [IMAGE] comments
(for images without ALT) with filenames of these images. This is extremely
useful because now we can determine immediately which images are decorations
(button.gif, line.gif) and which are important.
diff --git a/lynx_help/lynx_help_main.html b/lynx_help/lynx_help_main.html
index 06402f63..3af49161 100644
--- a/lynx_help/lynx_help_main.html
+++ b/lynx_help/lynx_help_main.html
@@ -2,83 +2,90 @@
<html>
<head>
<link rev="made" href="mailto:lynx-dev@sig.net">
-<title>Help! - Press the Left arrow key to exit help</title>
+<title>The Lynx Help Page</title>
</head>
<body>
-<H1>Lynx Help Menu</h1>
+<h2>Lynx help files (usually in your local directories):</h2>
-<ul plain>
-<lh><em>Choose a subject:</em></lh>
+<ul>
<li><a href="Lynx_users_guide.html">Lynx Users Guide</a>
-<ul plain>
+ -- complete account of all Lynx features
<li><a href="keystrokes/keystroke_help.html">Key-stroke Commands</a>
-| <a href="keystrokes/edit_help.html">Line Editor</a>
+ -- quick outline of what various keys do
+<li><a href="keystrokes/edit_help.html">Line Editor</a>
+ -- when entering URLs etc
<li><a href="lynx_url_support.html">Supported URLs</a>
-| <a href="http://www.w3.org/Addressing/Addressing.html"
->Help on URLs</a>
-<li><a href="http://leb.net/blinux/blynx/"
->Speech-Friendly Lynx Help Files</a>
-<li><a href="http://lynx.browser.org/">Lynx Home Page</a>
-| <a href="http://www.crl.com/~subir/lynx.html"
->Lynx links</a>
-| <a href="http://www.slcc.edu/lynx/faq.html"
->Lynx FAQ</a>
+ -- how Lynx handles various types of URL
<li><a href="about_lynx.html">About Lynx</a>
-| <a href="lynx-dev.html">About Lynx-Dev</a>
-| <a href="http://www.access.digex.net/~asgilman/lynx/FAQ/"
->Al's Picks (FAQ)</a>
+ -- credits, copyright etc
+<li><a href="lynx-dev.html">About Lynx-Dev</a>
+ -- the developers & how to contact them
</ul>
-<li><a
-href="http://www.w3.org/MarkUp/html-spec/html-spec_toc.html"
->HTML 2.0</a>
-| <a href="http://www.w3.org/MarkUp/html3/Contents.html"
->HTML 3.0</a>
-| <a href="http://www.alis.com:8085/ietf/html/"
->HTML i18n</a>
-| <a href="http://www.w3.org/MarkUp/"
->HTML 3.2</a>
-| <a href="http://www.w3.org/TR/PR-html40/"
->HTML 4.0</a>
+<h2>Other sources of Lynx help:</h2>
-<ul plain>
-<li><a href="http://www.stonehand.com/doc/"
->Spyglass/Stonehand Technical Reference</a>
-<ul plain>
-<li><a
-href="http://www.stonehand.com/doc/comments.html"
->Keep Your Comments Legal</a>
+<ul>
+<li><a href="http://www.chass.utoronto.ca/%7Epurslow/lhfb.html">Lynx Help for Beginners</a> -- quick help on many common problems
+<li><a href="http://www.access.digex.net/%7Easgilman/lynx/FAQ/">Al Gilman's FAQs</a> -- many common queries, some more advanced
+<li><a href="http://www.crl.com/%7Esubir/lynx.html">Lynx Links</a>
+ -- source & binaries, FAQs, developers & archives,<br>
+SSL & security, and more
+<li><A HREF="http://www.ocf.berkeley.edu/%7Ejeffwong/lynxstuff/">Lynxstuff</A>
+ -- SSL, Wyse terminals, Lynx-friendly Web design
+<li><a href="http://leb.net/blinux/blynx/">Blynx</a>
+ -- Speech-Friendly Help for the visually impaired
</ul>
-<li><a
-href="http://validator.w3.org/"
->W3C HTML Validation Service</a>
-<li><a href="http://www.webtechs.com/html-val-svc/"
->WebTechs HTML Validation Service</a>
-<li><a href="http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html"
->HTML Primer</a>
-| <a href="http://www.cc.ukans.edu/~acs/docs/other/HTML_quick.shtml"
->HTML Quick Reference Guide</a>
+
+<h2>World Wide Web Consortium documents:</h2>
+
+<ul>
+<li>HTML -- <a href="http://www.w3.org/TR/PR-html40/">4.0</a>
+ -- <a href="http://www.w3.org/MarkUp/">3.2</a>
+ -- <a href="http://www.w3.org/MarkUp/html3/Contents.html">3.0</a>
+ -- <a href="http://www.w3.org/MarkUp/html-spec/html-spec_toc.html">2.0</a>
+<li>HTTP -- <a href="http://www.w3.org/Protocols/">1.1</a>
+ -- <a href="http://ds.internic.net/rfc/rfc1945.txt">1.0</a>
+<li><a href="http://www.w3.org/Addressing/Addressing.html">Web Naming & Addressing Overview: URIs, URLs etc</a>
+<li><a href="http://www.alis.com:8085/ietf/html/">HTML Internationalisation</a>
+<li><a href="http://www.w3.org/TheProject.html">WWW Consortium: home page</a>
</ul>
-<li><a
-href="http://ds.internic.net/rfc/rfc1945.txt"
->HTTP 1.0</a>
-| <a href="http://www.w3.org/Protocols/"
->HTTP 1.1</a>
+<h2>Help with HTML:</h2>
+
+<ul>
+<li><a href="http://www.htmlhelp.com/reference/html40/">HTML 4.0 Reference</a>
+<li><a href="http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html">NCSA Beginner's Guide To HTML</a>
+<li><a href="http://www.cc.ukans.edu/~acs/docs/other/HTML_quick.shtml">HTML Quick Reference Guide</a>
+<li><a href="http://www.stonehand.com/doc/">Spyglass/Stonehand Technical Reference</a>
+</ul>
-<li><a
-href="http://www.w3.org/TheProject.html"
->The World Wide Web Consortium (W3C)</a>
+<h2>HTML validation services:</h2>
-<li><a href="http://www.altavista.digital.com/">Alta&nbsp;Vista</a>
-| <a href="http://www.yahoo.com/">Yahoo!</a>
-| <a href="http://guaraldi.cs.colostate.edu:2000/">Savvy&nbsp;Search</a>
-| <a href="http://www.webcrawler.com/">WebCrawler</a>
-<li><a href="http://guide.Infoseek.com/">Infoseek&nbsp;Guide</a>
-| <a href="http://www.lycos.com/">Lycos</a>
-| <a href="http://www.excite.com/">Excite</a>
-| <a href="http://www.metacrawler.com/">MetaCrawler</a>
+<ul>
+<li><a href="http://validator.w3.org/">W3C HTML Validation Service</a>
+<li><a href="http://www.webtechs.com/html-val-svc/">WebTechs HTML Validation Service</a>
</ul>
+
+<H2>Meta-indexes: lists of links</H2>
+
+<ul>
+<li><a href="http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/MetaIndex.html">NCSA Mosaic</a>
+</ul>
+
+<H2>Search engines:</H2>
+
+<ul>
+<li><a href="http://www.altavista.digital.com/">Alta Vista</a>
+<li><a href="http://www.excite.com/">Excite</a>
+<li><a href="http://www.infind.com/">Inference Find</a>
+<li><a href="http://guide.Infoseek.com/">Infoseek</a>
+<li><a href="http://www.lycos.com/">Lycos</a>
+<li><a href="http://www.metacrawler.com/">MetaCrawler</a>
+<li><a href="http://guaraldi.cs.colostate.edu:2000/">Savvy Search</a>
+<li><a href="http://www.webcrawler.com/">WebCrawler</a>
+<li><a href="http://www.yahoo.com/">Yahoo!</a>
+</ul>
+
</body>
</html>
diff --git a/src/LYClean.c b/src/LYClean.c
index 0ba852d3..113cc7cf 100644
--- a/src/LYClean.c
+++ b/src/LYClean.c
@@ -187,7 +187,8 @@ PUBLIC void cleanup NOARGS
* handle two processes writing to the cookie file needs to be worked
* out as well.
*/
- LYStoreCookies (LYCookieFile);
+ if (persistent_cookies)
+ LYStoreCookies (LYCookieFile);
#endif
cleanup_files();
diff --git a/src/LYCookie.c b/src/LYCookie.c
index d3e26c25..2e115499 100644
--- a/src/LYCookie.c
+++ b/src/LYCookie.c
@@ -419,7 +419,8 @@ PRIVATE void store_cookie ARGS3(
* isn't sensible. Perhaps something based on the domain
* and the path in conjunction makes more sense? - RP
*/
- if (co->flags & COOKIE_FLAG_PERSISTENT)
+ if (persistent_cookies
+ && (co->flags & COOKIE_FLAG_PERSISTENT))
de->bv = FROM_FILE;
else
#endif
@@ -513,10 +514,12 @@ PRIVATE void store_cookie ARGS3(
* to maintain their order for servers that need cookies in
* a particular order. This is a hack.
*/
- if ((de->bv = FROM_FILE) != 0) {
- HTList_appendObject(cookie_list, co);
- } else {
- HTList_insertObjectAt(cookie_list, co, pos);
+ if (persistent_cookies) {
+ if ((de->bv = FROM_FILE) != 0) {
+ HTList_appendObject(cookie_list, co);
+ } else {
+ HTList_insertObjectAt(cookie_list, co, pos);
+ }
}
#else
HTList_insertObjectAt(cookie_list, co, pos);
@@ -1873,7 +1876,7 @@ PUBLIC void LYLoadCookies ARGS1 (
CONST char *, cookie_file)
{
FILE *cookie_handle;
- char buf[5000]; /* should be long enough for a cookie line */
+ char buf[max_cookies_buffer+10]; /* should be long enough for a cookie line */
static char domain[256], path[LY_MAXPATH], name[256], value[4100];
static char what[8], secure[8], expires_a[16];
static struct {
diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h
index 3960b9f1..c326615d 100644
--- a/src/LYGlobalDefs.h
+++ b/src/LYGlobalDefs.h
@@ -320,6 +320,7 @@ extern BOOLEAN LYAcceptAllCookies; /* accept ALL cookies? */
extern char *LYCookieAcceptDomains; /* domains to accept all cookies */
extern char *LYCookieRejectDomains; /* domains to reject all cookies */
#ifdef EXP_PERSISTENT_COOKIES
+extern BOOLEAN persistent_cookies;
extern char *LYCookieFile; /* file to store cookies in */
#endif /* EXP_PERSISTENT_COOKIES */
extern char *XLoadImageCommand; /* Default image viewer for X */
diff --git a/src/LYMain.c b/src/LYMain.c
index 4b7447c3..7b192d4f 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -342,6 +342,7 @@ PUBLIC BOOLEAN LYAcceptAllCookies = ACCEPT_ALL_COOKIES; /* take all cookies? */
PUBLIC char *LYCookieAcceptDomains = NULL; /* domains to accept all cookies */
PUBLIC char *LYCookieRejectDomains = NULL; /* domains to reject all cookies */
#ifdef EXP_PERSISTENT_COOKIES
+BOOLEAN persistent_cookies = TRUE;
PUBLIC char *LYCookieFile = NULL; /* default cookie file */
#endif /* EXP_PERSISTENT_COOKIES */
PUBLIC char *XLoadImageCommand = NULL; /* Default image viewer for X */
@@ -516,6 +517,23 @@ PRIVATE void LYStdinArgs_free NOARGS
return;
}
+PRIVATE void exit_immediately ARGS1(
+ int, code)
+{
+#ifndef NOSIGHUP
+ (void) signal(SIGHUP, SIG_DFL);
+#endif /* NOSIGHUP */
+ (void) signal(SIGTERM, SIG_DFL);
+#ifndef VMS
+ (void) signal(SIGINT, SIG_DFL);
+#endif /* !VMS */
+#ifdef SIGTSTP
+ if (no_suspend)
+ (void) signal(SIGTSTP, SIG_DFL);
+#endif /* SIGTSTP */
+ exit(code);
+}
+
/*
* Wow! Someone wants to start up Lynx.
*/
@@ -1488,20 +1506,22 @@ PUBLIC int main ARGS2(
* Sod it, this looks like a reasonable place to load the
* cookies file, probably. - RP
*/
- if(LYCookieFile == NULL) {
- LYAddPathToHome(LYCookieFile = malloc(LY_MAXPATH), LY_MAXPATH, COOKIE_FILE);
- } else {
- if ((cp = strchr(LYCookieFile, '~'))) {
- temp = NULL;
- *(cp++) = '\0';
- StrAllocCopy(temp, cp);
- LYTrimPathSep(temp);
- StrAllocCopy(LYCookieFile, wwwName(Home_Dir()));
- StrAllocCat(LYCookieFile, temp);
- FREE(temp);
+ if (persistent_cookies) {
+ if(LYCookieFile == NULL) {
+ LYAddPathToHome(LYCookieFile = malloc(LY_MAXPATH), LY_MAXPATH, COOKIE_FILE);
+ } else {
+ if ((cp = strchr(LYCookieFile, '~'))) {
+ temp = NULL;
+ *(cp++) = '\0';
+ StrAllocCopy(temp, cp);
+ LYTrimPathSep(temp);
+ StrAllocCopy(LYCookieFile, wwwName(Home_Dir()));
+ StrAllocCat(LYCookieFile, temp);
+ FREE(temp);
+ }
}
+ LYLoadCookies(LYCookieFile);
}
- LYLoadCookies(LYCookieFile);
#endif
#ifdef SIGTSTP
@@ -1513,6 +1533,36 @@ PUBLIC int main ARGS2(
#endif /* SIGTSTP */
/*
+ * Check for a valid HEAD request. - FM
+ */
+ if (HEAD_request && LYCanDoHEAD(startfile) != TRUE) {
+ fprintf(stderr,
+ "The '-head' switch is for http HEAD requests and cannot be used for\n'%s'.\n",
+ startfile);
+ exit_immediately(-1);
+ }
+
+ /*
+ * Check for a valid MIME headers request. - FM
+ */
+ if (keep_mime_headers && LYCanDoHEAD(startfile) != TRUE) {
+ fprintf(stderr,
+ "The '-mime_header' switch is for http URLs and cannot be used for\n'%s'.\n",
+ startfile);
+ exit_immediately(-1);
+ }
+
+ /*
+ * Check for a valid traversal request. - FM
+ */
+ if (traversal && strncmp(startfile, "http", 4)) {
+ fprintf(stderr,
+ "The '-traversal' switch is for http URLs and cannot be used for\n'%s'.\n",
+ startfile);
+ exit_immediately(-1);
+ }
+
+ /*
* Finish setting up for an INTERACTIVE session.
* Done here so that URL guessing in LYEnsureAbsoluteURL() can be
* interruptible (terminal is in raw mode, select() works). -BL
@@ -1574,69 +1624,6 @@ PUBLIC int main ARGS2(
}
/*
- * Check for a valid HEAD request. - FM
- */
- if (HEAD_request && LYCanDoHEAD(startfile) != TRUE) {
- fprintf(stderr,
- "The '-head' switch is for http HEAD requests and cannot be used for\n'%s'.\n",
- startfile);
-#ifndef NOSIGHUP
- (void) signal(SIGHUP, SIG_DFL);
-#endif /* NOSIGHUP */
- (void) signal(SIGTERM, SIG_DFL);
-#ifndef VMS
- (void) signal(SIGINT, SIG_DFL);
-#endif /* !VMS */
-#ifdef SIGTSTP
- if (no_suspend)
- (void) signal(SIGTSTP,SIG_DFL);
-#endif /* SIGTSTP */
- exit(-1);
- }
-
- /*
- * Check for a valid MIME headers request. - FM
- */
- if (keep_mime_headers && LYCanDoHEAD(startfile) != TRUE) {
- fprintf(stderr,
- "The '-mime_header' switch is for http URLs and cannot be used for\n'%s'.\n",
- startfile);
-#ifndef NOSIGHUP
- (void) signal(SIGHUP, SIG_DFL);
-#endif /* NOSIGHUP */
- (void) signal(SIGTERM, SIG_DFL);
-#ifndef VMS
- (void) signal(SIGINT, SIG_DFL);
-#endif /* !VMS */
-#ifdef SIGTSTP
- if (no_suspend)
- (void) signal(SIGTSTP,SIG_DFL);
-#endif /* SIGTSTP */
- exit(-1);
- }
-
- /*
- * Check for a valid traversal request. - FM
- */
- if (traversal && strncmp(startfile, "http", 4)) {
- fprintf(stderr,
- "The '-traversal' switch is for http URLs and cannot be used for\n'%s'.\n",
- startfile);
-#ifndef NOSIGHUP
- (void) signal(SIGHUP, SIG_DFL);
-#endif /* NOSIGHUP */
- (void) signal(SIGTERM, SIG_DFL);
-#ifndef VMS
- (void) signal(SIGINT, SIG_DFL);
-#endif /* !VMS */
-#ifdef SIGTSTP
- if (no_suspend)
- (void) signal(SIGTSTP,SIG_DFL);
-#endif /* SIGTSTP */
- exit(-1);
- }
-
- /*
* Set up our help and about file base paths. - FM
*/
StrAllocCopy(helpfilepath, helpfile);
@@ -1687,17 +1674,7 @@ PUBLIC int main ARGS2(
(keypad_mode == LINKS_ARE_NUMBERED ||
keypad_mode == LINKS_AND_FORM_FIELDS_ARE_NUMBERED))
printlist(stdout,FALSE);
-#ifndef NOSIGHUP
- (void) signal(SIGHUP, SIG_DFL);
-#endif /* NOSIGHUP */
- (void) signal(SIGTERM, SIG_DFL);
-#ifndef VMS
- (void) signal(SIGINT, SIG_DFL);
-#endif /* !VMS */
-#ifdef SIGTSTP
- if (no_suspend)
- (void) signal(SIGTSTP,SIG_DFL);
-#endif /* SIGTSTP */
+ exit_immediately(status);
} else {
/*
* Start an INTERACTIVE session. - FM
@@ -1708,9 +1685,9 @@ PUBLIC int main ARGS2(
ena_csi((LYlowest_eightbit[current_char_set] > 155));
status = mainloop();
cleanup();
+ exit(status);
}
- exit(status);
return(status); /* though redundant, for compiler-warnings */
}
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index 7b830ad2..87a751bd 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -3849,7 +3849,7 @@ if (!LYUseFormsOptions) {
*/
HTuncache_current_document();
}
-#endif /* NO_OPTION_FORMS */
+#endif /* !NO_OPTION_FORMS */
break;
case LYK_INDEX_SEARCH: /* search for a user string */
diff --git a/src/LYOptions.c b/src/LYOptions.c
index 5ee3c02c..3d894764 100644
--- a/src/LYOptions.c
+++ b/src/LYOptions.c
@@ -3400,10 +3400,11 @@ PRIVATE PostPair * break_data ARGS1(
* pointer. MRC
*
* By changing the certain options value (like preferred language or
- * fake browser name) we need to inform the remote server and reload (uncache)
- * the document which was active just before the Options menu was invoked.
- * Another values (like display_char_set or assume_char_set) used by lynx
- * initial rendering stages and can be changed only after reloading :-(
+ * fake browser name) we need to inform the remote server and reload
+ * (uncache on a proxy) the document which was active just before
+ * the Options menu was invoked. Another values (like display_char_set
+ * or assume_char_set) used by lynx initial rendering stages
+ * and can only be changed after reloading :-(
* So we introduce boolean flag 'need_reload' (currently dummy).
*
* Options are processed in order according to gen_options(), we should not
@@ -3612,21 +3613,12 @@ PUBLIC int postoptions ARGS1(
/* Display Character Set: SELECT */
if (!strcmp(data[i].tag, display_char_set_string)) {
- int newval;
-
- newval = atoi(data[i].value);
- if (newval != current_char_set) {
- current_char_set = newval;
- }
+ current_char_set = atoi(data[i].value);
}
/* Raw Mode: ON/OFF */
if (!strcmp(data[i].tag, raw_mode_string)) {
- BOOLEAN newmode = GetOptValues(bool_values, data[i].value);
-
- if (newmode != LYRawMode) {
- LYRawMode = newmode;
- }
+ LYRawMode = GetOptValues(bool_values, data[i].value);
}
/*
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index aef1c7af..59c8d15e 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -912,6 +912,9 @@ static Config_Type Config_Table [] =
PARSE_SET("partial", CONF_BOOL, display_partial),
PARSE_INT("partial_thres", CONF_INT, partial_threshold),
#endif
+#ifdef EXP_PERSISTENT_COOKIES
+ PARSE_SET("persistent_cookies", CONF_BOOL, persistent_cookies),
+#endif /* EXP_PERSISTENT_COOKIES */
PARSE_STR("personal_mailcap", CONF_STR, personal_type_map),
PARSE_STR("personal_extension_map", CONF_STR, personal_extension_map),
PARSE_STR("preferred_charset", CONF_STR, pref_charset),
@@ -938,6 +941,7 @@ static Config_Type Config_Table [] =
PARSE_FUN("system_editor", CONF_FUN, system_editor_fun),
PARSE_STR("system_mail", CONF_STR, system_mail),
PARSE_STR("system_mail_flags", CONF_STR, system_mail_flags),
+ PARSE_SET("tagsoup", CONF_BOOL, New_DTD),
#ifdef EXEC_LINKS
PARSE_DEF("trusted_exec", CONF_ADD_TRUSTED, EXEC_PATH),
#endif
@@ -1163,13 +1167,17 @@ PUBLIC void read_cfg ARGS4(
case CONF_INCLUDE:
/* include another file */
+#ifndef NO_CONFIG_INFO
if (fp0 != 0) {
fprintf(fp0, "%s:%s\n\n", name, value);
fprintf(fp0, " #&lt;begin %s&gt;\n", value);
}
+#endif
read_cfg (value, cfg_filename, nesting_level + 1, fp0);
+#ifndef NO_CONFIG_INFO
if (fp0 != 0)
fprintf(fp0, " #&lt;end of %s&gt;\n\n", value);
+#endif
break;
case CONF_ADD_ITEM:
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 3ed0f848..5e82ca6d 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -2823,8 +2823,6 @@ PUBLIC BOOLEAN inlocaldomain NOARGS
/* For systems that have both, but both can't be included, duh (or neither) */
/* FIXME: this whole chunk may be redundant */
#ifdef TERMIO_AND_CURSES
-# include <termio.h>
-# else
# ifdef TERMIO_AND_TERMIOS
# include <termio.h>
# else
@@ -2836,7 +2834,7 @@ PUBLIC BOOLEAN inlocaldomain NOARGS
# endif /* HAVE_TERMIO_H */
# endif /* HAVE_TERMIOS_H */
# endif /* TERMIO_AND_TERMIOS */
-#endif /* USE_TERMIO_H */
+#endif /* TERMIO_AND_CURSES */
PUBLIC void size_change ARGS1(
int, sig GCC_UNUSED)
diff --git a/src/chrtrans/makeuctb.c b/src/chrtrans/makeuctb.c
index ff66ad6c..cc721723 100644
--- a/src/chrtrans/makeuctb.c
+++ b/src/chrtrans/makeuctb.c
@@ -660,8 +660,8 @@ PUBLIC int main ARGS2(
p++, i++) {
id_append[i+1] = isalnum(*p) ? *p : '_';
}
+ id_append[i+1] = '\0';
}
- id_append[i+1] = '\0';
fprintf(stderr, " (%s).\n", id_append);
printf("\
diff --git a/userdefs.h b/userdefs.h
index a6fae93e..eb1b878e 100644
--- a/userdefs.h
+++ b/userdefs.h
@@ -1216,12 +1216,12 @@
* the version definition with the Project Version on checkout. Just
* ignore it. - kw */
/* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */
-#define LYNX_VERSION "2.8.1pre.11"
+#define LYNX_VERSION "2.8.1rel.1"
#define LYNX_WWW_HOME "http://lynx.browser.org/"
#define LYNX_WWW_DIST "http://www.slcc.edu/lynx/current/"
-#define LYNX_RELEASE FALSE
+#define LYNX_RELEASE TRUE
/* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */
-#define LYNX_DATE "Sat, 17 Oct 1998 15:20:41 -0600"
+#define LYNX_DATE "Sat, 24 Oct 1998 10:49:07 -0600"
#define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */
#define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */
#define LYNX_RELEASE_DATE "1998"