diff options
| author | Thomas E. Dickey <dickey@invisible-island.net> | 2010-12-11 15:26:32 -0500 |
|---|---|---|
| committer | Thomas E. Dickey <dickey@invisible-island.net> | 2010-12-11 15:26:32 -0500 |
| commit | 14ee67ba5e4e2df67004f0e7e27fb1df993c5619 (patch) | |
| tree | 6b2a62418c88e8f5bce1cb31eb5a4b03165d354b | |
| parent | f6ef3f03e831c3e150a18f31675862794e6c8c7f (diff) | |
| download | lynx-snapshots-14ee67ba5e4e2df67004f0e7e27fb1df993c5619.tar.gz | |
snapshot of project "lynx", label v2-8-8dev_7
| -rw-r--r-- | CHANGES | 6 | ||||
| -rw-r--r-- | PACKAGE/version.iss | 2 | ||||
| -rwxr-xr-x | configure | 2 | ||||
| -rw-r--r-- | configure.in | 6 | ||||
| -rw-r--r-- | lynx.cfg | 21 | ||||
| -rw-r--r-- | lynx_help/Lynx_users_guide.html | 15 | ||||
| -rw-r--r-- | makefile.in | 4 | ||||
| -rw-r--r-- | src/LYExtern.c | 11 | ||||
| -rw-r--r-- | src/LYGlobalDefs.h | 3 | ||||
| -rw-r--r-- | src/LYMail.c | 20 | ||||
| -rw-r--r-- | src/LYMain.c | 5 | ||||
| -rw-r--r-- | src/LYOptions.c | 18 | ||||
| -rw-r--r-- | src/LYrcFile.c | 12 | ||||
| -rw-r--r-- | src/LYrcFile.h | 3 | ||||
| -rw-r--r-- | userdefs.h | 6 |
15 files changed, 90 insertions, 44 deletions
@@ -1,9 +1,11 @@ --- $LynxId: CHANGES,v 1.522 2010/12/10 09:56:49 tom Exp $ +-- $LynxId: CHANGES,v 1.525 2010/12/11 14:28:43 tom Exp $ =============================================================================== Changes since Lynx 2.8 release =============================================================================== -2010-12-10 (2.8.8dev.7) +2010-12-11 (2.8.8dev.7) +* add PERSONAL_MAIL_NAME to options menu and .lynxrc (Debian #603647) -TD +* remind user how to cancel message (Debian #292787) -TD * add HTML5_CHARSETS feature, which allows the user to choose whether to interpret pages without an explicit charset according to the HTML5 "compatibility" feature (Debian #604466, #514897) -TD diff --git a/PACKAGE/version.iss b/PACKAGE/version.iss index 692ed2da..e15e46c2 100644 --- a/PACKAGE/version.iss +++ b/PACKAGE/version.iss @@ -1,7 +1,7 @@ ; version used for Inno Setup files.
; $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$
-#define LYNX_VERSION "2.8.8dev.6" +#define LYNX_VERSION "2.8.8dev.7" #define MyAppName "Lynx"
#define MyAppPublisher "Thomas E Dickey"
@@ -1261,7 +1261,7 @@ rm conftest.sed PACKAGE=lynx # $Format: "VERSION=$ProjectVersion$"$ -VERSION=2.8.8dev.6 +VERSION=2.8.8dev.7 echo "$as_me:1266: checking for DESTDIR" >&5 echo $ECHO_N "checking for DESTDIR... $ECHO_C" >&6 diff --git a/configure.in b/configure.in index 01dc1ed5..6e692b83 100644 --- a/configure.in +++ b/configure.in @@ -1,4 +1,4 @@ -dnl $LynxId: configure.in,v 1.222 2010/10/04 09:53:59 tom Exp $ +dnl $LynxId: configure.in,v 1.223 2010/12/11 15:26:32 tom Exp $ dnl dnl Process this file with autoconf to produce a configure script. dnl @@ -29,7 +29,7 @@ dnl --------------------------------------------------------------------------- dnl dnl ask PRCS to plug-in the project-version for the configure-script. dnl $Format: "AC_REVISION($ProjectVersion$)"$ -AC_REVISION(2.8.8dev.6) +AC_REVISION(2.8.8dev.7) # Save the original $CFLAGS so we can distinguish whether the user set those # in the environment, or whether autoconf added -O and -g options: @@ -64,7 +64,7 @@ AC_ARG_PROGRAM PACKAGE=lynx dnl ask PRCS to plug-in the project-version for the packages. # $Format: "VERSION=$ProjectVersion$"$ -VERSION=2.8.8dev.6 +VERSION=2.8.8dev.7 AC_SUBST(PACKAGE) AC_SUBST(VERSION) @@ -1,13 +1,13 @@ -# $LynxId: lynx.cfg,v 1.200 2010/12/10 09:47:33 tom Exp $ +# $LynxId: lynx.cfg,v 1.202 2010/12/11 15:26:32 tom Exp $ # lynx.cfg file. # The default placement for this file is /usr/local/lib/lynx.cfg (Unix) # or Lynx_Dir:lynx.cfg (VMS) # # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$ -#PRCS LYNX_VERSION "2.8.8dev.6" +#PRCS LYNX_VERSION "2.8.8dev.7" # # $Format: "#PRCS LYNX_DATE \"$ProjectDate$\""$ -#PRCS LYNX_DATE "Mon, 04 Oct 2010 02:44:56 -0700" +#PRCS LYNX_DATE "Sat, 11 Dec 2010 07:26:32 -0800" # # Definition pairs are of the form VARIABLE:DEFINITION # NO spaces are allowed between the pair items. @@ -454,13 +454,18 @@ DEFAULT_INDEX_FILE:http://scout.wisc.edu/ #LOCALE_CHARSET:FALSE .h2 HTML5_CHARSETS -# HTML5_CHARSETS is an alternative to ASSUME_CHARSET and ASSUME_LOCAL_CHARSET. +# HTML5_CHARSETS is an alternative to ASSUME_CHARSET and ASSUME_LOCAL_CHARSET. # Those assume by default that the character set of an HTML document is (as is -# standard in HTML4) ISO-8859-1, in the absence of locale information. HTML5 -# introduces a "compatibility" (sic) feature which assumes that the default is -# Windows 1252. In the same way, it equates ISO-8859-4 and Windows 1254. -# Finally, it also makes recommendations which selectively reinterpret +# standard in HTML4) ISO-8859-1, in the absence of locale information. +# +# HTML5 introduces a "compatibility" (sic) feature which assumes that the +# default is Windows 1252. In the same way, it equates ISO-8859-4 and Windows +# 1254. Finally, it also makes recommendations which selectively reinterpret # the locale encoding. +# +# This option currently implements only the equating of ISO-8859-1 and Windows +# 1252. +# #HTML5_CHARSETS:FALSE diff --git a/lynx_help/Lynx_users_guide.html b/lynx_help/Lynx_users_guide.html index f77d28b4..2f7d6325 100644 --- a/lynx_help/Lynx_users_guide.html +++ b/lynx_help/Lynx_users_guide.html @@ -1,5 +1,5 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- $LynxId: Lynx_users_guide.html,v 1.110 2010/06/19 11:09:56 Paul.B.Mahol Exp $ --> +<!-- $LynxId: Lynx_users_guide.html,v 1.112 2010/12/11 14:27:16 tom Exp $ --> <html> <head> <title>Lynx Users Guide v2.8.7</title> @@ -521,6 +521,7 @@ HREF="keystrokes/option_help.html">HELP!</A> Display and Character Sets Use locale-based character set(!): [OFF] + Use HTML5 charset replacements(!): [OFF] Display character set : [Cyrillic (ISO-8859-5)..........] Assumed document character set(!): [iso-8859-1......] Raw 8-bit (!) : [OFF] @@ -539,6 +540,7 @@ HREF="keystrokes/option_help.html">HELP!</A> Headers Transferred to Remote Servers Personal mail address : __________________________________________ + Personal mail name : __________________________________________ Password for anonymous ftp : __________________________________________ Preferred media type (!) : [Accept lynx's internal types] Preferred encoding (!) : [All_____] @@ -856,6 +858,12 @@ return to Lynx or the '<em>></em>' command to save the options to a (the compilation default is not to send the header), or via the <em>-from</em> command line toggle. + <dt>Personal mail name + <dd>This mail name will be included as the "X-Personal_Name" field in + any mail or comments that you send if that header has not been + disabled via the NO_ANONYMOUS_EMAIL definition in + <A HREF="#lynx.cfg">lynx.cfg</A>. + <dt>Popups for select fields <dd>Lynx normally uses a popup window for the OPTIONs in form SELECT fields when the field does not have the MULTIPLE @@ -1037,6 +1045,11 @@ return to Lynx or the '<em>></em>' command to save the options to a for words within documents will be done in a case-sensitive or case-insensitive manner. + <dt>Use HTML5 charset replacements + <dd>This option allows lynx to treat pages with ISO-8859-1 (Latin1) + or ASCII encoding as if they were Windows 1252. That allows + a few punctuation characters to be shown. + <dt>Use locale-based character set <dd>This option allows you to request lynx to obtain a MIME name from the operating system which corresponds to your locale diff --git a/makefile.in b/makefile.in index 37bacdaa..d5763697 100644 --- a/makefile.in +++ b/makefile.in @@ -1,4 +1,4 @@ -# $LynxId: makefile.in,v 1.115 2010/10/04 09:53:59 tom Exp $ +# $LynxId: makefile.in,v 1.116 2010/12/11 15:26:32 tom Exp $ ##makefile for lynx SHELL = @CONFIG_SHELL@ @@ -37,7 +37,7 @@ TAR_UP = $(TAR) @TAR_UP_OPTIONS@ @TAR_PIPE_OPTIONS@ TAR_DOWN = $(TAR) @TAR_DOWN_OPTIONS@ @TAR_PIPE_OPTIONS@ # $Format: "LYNX_VERSION = $ProjectVersion$"$ -LYNX_VERSION = 2.8.8dev.6 +LYNX_VERSION = 2.8.8dev.7 ## This is the version which we are developing (or, upon release, make this ## the same). Use no dots in the name, since it must work on VMS and MS-DOS. diff --git a/src/LYExtern.c b/src/LYExtern.c index 94d2cb58..7809ca5f 100644 --- a/src/LYExtern.c +++ b/src/LYExtern.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYExtern.c,v 1.47 2010/12/09 00:34:51 tom Exp $ + * $LynxId: LYExtern.c,v 1.48 2010/12/11 13:08:13 tom Exp $ * External application support. This feature allows lynx to pass a given URL to an external program. @@ -239,7 +239,7 @@ static char *lookup_external(char *param, int only_overriders) { int pass, num_disabled, num_matched, num_choices, cur_choice; - int length = 0; + size_t length = 0; char *cmdbuf = NULL; char **actions = 0; char **choices = 0; @@ -263,7 +263,8 @@ static char *lookup_external(char *param, cmdbuf = format_command(ptr->command, param); if (length > 1) { actions[num_choices] = cmdbuf; - choices[num_choices] = ptr->menu_name; + choices[num_choices] = + format_command(ptr->menu_name, param); } } num_choices++; @@ -272,8 +273,8 @@ static char *lookup_external(char *param, } if (length > 1) { if (pass == 0) { - actions = typecallocn(char *, (unsigned) length + 1); - choices = typecallocn(char *, (unsigned) length + 1); + actions = typecallocn(char *, length + 1); + choices = typecallocn(char *, length + 1); } else { actions[num_choices] = 0; choices[num_choices] = 0; diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h index e7a88dcd..353b18e5 100644 --- a/src/LYGlobalDefs.h +++ b/src/LYGlobalDefs.h @@ -1,5 +1,5 @@ /* - * $LynxId: LYGlobalDefs.h,v 1.127 2010/12/10 01:17:05 tom Exp $ + * $LynxId: LYGlobalDefs.h,v 1.128 2010/12/11 14:19:17 tom Exp $ * * global variable definitions */ @@ -377,6 +377,7 @@ extern "C" { extern char *indexfile; extern char *anonftp_password; extern char *personal_mail_address; + extern char *personal_mail_name; extern char *homepage; /* startfile or command line argument */ extern char *editor; /* if non empty it enables edit mode with diff --git a/src/LYMail.c b/src/LYMail.c index 6da72e6f..ba9d3b48 100644 --- a/src/LYMail.c +++ b/src/LYMail.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYMail.c,v 1.76 2010/09/25 11:22:16 tom Exp $ + * $LynxId: LYMail.c,v 1.80 2010/12/11 14:52:59 tom Exp $ */ #include <HTUtils.h> #include <HTParse.h> @@ -1095,9 +1095,6 @@ void reply_by_mail(char *mail_address, const char *title, const char *refid) { -#ifndef NO_ANONYMOUS_EMAIL - static char *personal_name = NULL; -#endif char user_input[LINESIZE]; FILE *fd, *fp; const char *label = NULL; @@ -1336,21 +1333,21 @@ void reply_by_mail(char *mail_address, LYaddstr(ENTER_NAME_OR_BLANK); #if USE_VMS_MAILER if (isPMDF) { - label = "Personal_name: "; + label = "Personal_name"; } else { - label = "X-Personal_name: "; + label = "X-Personal_name"; } #else - label = "X-Personal_Name: "; + label = "X-Personal_Name"; #endif /* USE_VMS_MAILER */ - if (!header_prompt(label, &personal_name, LINESIZE)) { + if (!header_prompt(label, &personal_mail_name, LINESIZE)) { goto cancelled; } - if (*personal_name) { + if (*personal_mail_name) { #if USE_VMS_MAILER - fprintf((isPMDF ? hfd : fd), "%s: %s\n", label, personal_name); + fprintf((isPMDF ? hfd : fd), "%s: %s\n", label, personal_mail_name); #else - HTSprintf(&header, "%s: %s\n", label, personal_name); + HTSprintf(&header, "%s: %s\n", label, personal_mail_name); #endif /* VMS */ } @@ -1523,6 +1520,7 @@ void reply_by_mail(char *mail_address, LYaddstr(ENTER_MESSAGE_BELOW); LYaddstr(ENTER_PERIOD_WHEN_DONE_A); LYaddstr(ENTER_PERIOD_WHEN_DONE_B); + LYaddstr(CTRL_G_TO_CANCEL_SEND); LYaddstr("\n\n"); LYrefresh(); *user_input = '\0'; diff --git a/src/LYMain.c b/src/LYMain.c index 902dbbea..afa9eaa9 100644 --- a/src/LYMain.c +++ b/src/LYMain.c @@ -1,5 +1,5 @@ /* - * $LynxId: LYMain.c,v 1.225 2010/12/10 01:17:41 tom Exp $ + * $LynxId: LYMain.c,v 1.226 2010/12/11 14:19:47 tom Exp $ */ #include <HTUtils.h> #include <HTTP.h> @@ -449,7 +449,8 @@ char *lynxlinksfile = NULL; /* the current visited links file URL */ char *lynxlistfile = NULL; /* the current list file URL */ char *original_dir = NULL; /* the original directory */ char *personal_extension_map = NULL; /* .mime.types */ -char *personal_mail_address = NULL; /* the users mail address */ +char *personal_mail_address = NULL; /* the user's mail address */ +char *personal_mail_name = NULL; /* the user's personal name mail */ char *personal_type_map = NULL; /* .mailcap */ char *pref_charset = NULL; /* preferred character set */ char *proxyauth_info[2] = diff --git a/src/LYOptions.c b/src/LYOptions.c index edfe85b0..d372ac3e 100644 --- a/src/LYOptions.c +++ b/src/LYOptions.c @@ -1,4 +1,4 @@ -/* $LynxId: LYOptions.c,v 1.142 2010/12/10 01:51:49 tom Exp $ */ +/* $LynxId: LYOptions.c,v 1.143 2010/12/11 14:36:42 tom Exp $ */ #include <HTUtils.h> #include <HTFTP.h> #include <HTTP.h> /* 'reloading' flag */ @@ -2196,6 +2196,7 @@ static OptValues keypad_mode_values[] = }; static const char *lineedit_mode_string = RC_LINEEDIT_MODE; static const char *mail_address_string = RC_PERSONAL_MAIL_ADDRESS; +static const char *personal_name_string = RC_PERSONAL_MAIL_NAME; static const char *search_type_string = RC_CASE_SENSITIVE_SEARCHING; #ifndef DISABLE_FTP @@ -2848,6 +2849,13 @@ int postoptions(DocInfo *newdoc) FREE(personal_mail_address); StrAllocCopy(personal_mail_address, data[i].value); } +#ifndef NO_ANONYMOUS_EMAIL + /* Personal Name: INPUT */ + if (!strcmp(data[i].tag, personal_name_string)) { + FREE(personal_mail_name); + StrAllocCopy(personal_mail_name, data[i].value); + } +#endif /* Anonymous FTP Password: INPUT */ #ifndef DISABLE_FTP @@ -3838,9 +3846,15 @@ static int gen_options(char **newfile) PutTextInput(fp0, mail_address_string, NonNull(personal_mail_address), text_len, ""); +#ifndef NO_ANONYMOUS_EMAIL + PutLabel(fp0, gettext("Personal name for mail"), personal_name_string); + PutTextInput(fp0, personal_name_string, + NonNull(personal_mail_name), text_len, ""); +#endif + /* Anonymous FTP Address: INPUT */ #ifndef DISABLE_FTP - PutLabel(fp0, gettext("Password for anonymous ftp"), mail_address_string); + PutLabel(fp0, gettext("Password for anonymous ftp"), anonftp_password_string); PutTextInput(fp0, anonftp_password_string, NonNull(anonftp_password), text_len, ""); #endif diff --git a/src/LYrcFile.c b/src/LYrcFile.c index 83cfad79..5b909053 100644 --- a/src/LYrcFile.c +++ b/src/LYrcFile.c @@ -1,4 +1,4 @@ -/* $LynxId: LYrcFile.c,v 1.87 2010/12/10 09:45:31 tom Exp $ */ +/* $LynxId: LYrcFile.c,v 1.88 2010/12/11 14:20:53 tom Exp $ */ #include <HTUtils.h> #include <HTFTP.h> #include <LYUtils.h> @@ -465,6 +465,16 @@ to TRUE in lynx.cfg, or use the -nofrom command line switch. You also\n\ could leave this field blank, but then you won't have it included in\n\ your mailed comments.\n\ ")), + PARSE_STR(RC_PERSONAL_MAIL_NAME, personal_mail_name, N_("\ +personal_mail_name specifies your personal name, for mail. The\n\ +name is sent for mailed comments. Lynx will prompt for this,\n\ +showing the configured value as a default when sending mail.\n\ +This is not necessarily the same as a name provided as part of the\n\ +personal_mail_address.\n\ +Lynx does not save your changes to that default value as a side-effect\n\ +of sending email. To update the default value, you must use the options\n\ +menu, or modify this file directly.\n\ +")), PARSE_STR(RC_PREFERRED_CHARSET, pref_charset, N_("\ preferred_charset specifies the character set in MIME notation (e.g.,\n\ ISO-8859-2, ISO-8859-5) which Lynx will indicate you prefer in requests\n\ diff --git a/src/LYrcFile.h b/src/LYrcFile.h index b1defdf4..26a8ffbe 100644 --- a/src/LYrcFile.h +++ b/src/LYrcFile.h @@ -1,5 +1,5 @@ /* - * $LynxId: LYrcFile.h,v 1.39 2010/12/10 01:20:54 tom Exp $ + * $LynxId: LYrcFile.h,v 1.40 2010/12/11 14:12:47 tom Exp $ */ #ifndef LYRCFILE_H #define LYRCFILE_H @@ -174,6 +174,7 @@ #define RC_PERSONAL_EXTENSION_MAP "personal_extension_map" #define RC_PERSONAL_MAILCAP "personal_mailcap" #define RC_PERSONAL_MAIL_ADDRESS "personal_mail_address" +#define RC_PERSONAL_MAIL_NAME "personal_mail_name" #define RC_POSITIONABLE_EDITOR "positionable_editor" #define RC_PREFERRED_CHARSET "preferred_charset" #define RC_PREFERRED_ENCODING "preferred_encoding" @@ -1,5 +1,5 @@ /* - * $LynxId: userdefs.h,v 1.261 2010/12/08 01:28:43 Doug.Kaufman Exp $ + * $LynxId: userdefs.h,v 1.262 2010/12/11 15:26:32 tom Exp $ * * Lynx - Hypertext navigation system * @@ -1432,11 +1432,11 @@ * the version definition with the Project Version on checkout. Just * ignore it. - kw */ /* $Format: "#define LYNX_VERSION \"$ProjectVersion$\""$ */ -#define LYNX_VERSION "2.8.8dev.6" +#define LYNX_VERSION "2.8.8dev.7" #define LYNX_WWW_HOME "http://lynx.isc.org/" #define LYNX_WWW_DIST "http://lynx.isc.org/current/" /* $Format: "#define LYNX_DATE \"$ProjectDate$\""$ */ -#define LYNX_DATE "Mon, 04 Oct 2010 02:44:56 -0700" +#define LYNX_DATE "Sat, 11 Dec 2010 07:26:32 -0800" #define LYNX_DATE_OFF 5 /* truncate the automatically-generated date */ #define LYNX_DATE_LEN 11 /* truncate the automatically-generated date */ |