about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2018-03-05 22:52:26 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2018-03-05 22:52:26 +0000
commit9b7b3896381522f1b70c8e7d803db8103cccd7a1 (patch)
tree4ba8face05ba92aa301627ee2f1709494b7f4fad /src
parent2c91be6158b3242e323e3c52fd585d0658cbf4be (diff)
downloadlynx-snapshots-9b7b3896381522f1b70c8e7d803db8103cccd7a1.tar.gz
snapshot of project "lynx", label v2-8-9dev_16o
Diffstat (limited to 'src')
-rw-r--r--src/GridText.c10
-rw-r--r--src/HTFWriter.c21
-rw-r--r--src/HTInit.c112
-rw-r--r--src/LYBookmark.c4
-rw-r--r--src/LYCgi.c4
-rw-r--r--src/LYCharUtils.c6
-rw-r--r--src/LYGlobalDefs.h4
-rw-r--r--src/LYHistory.c4
-rw-r--r--src/LYMail.c4
-rw-r--r--src/LYMain.c13
-rw-r--r--src/LYMainLoop.c7
-rw-r--r--src/LYMap.c4
-rw-r--r--src/LYOptions.c66
-rw-r--r--src/LYPrint.c15
-rw-r--r--src/LYReadCFG.c3
-rw-r--r--src/LYrcFile.c11
-rw-r--r--src/LYrcFile.h4
17 files changed, 169 insertions, 123 deletions
diff --git a/src/GridText.c b/src/GridText.c
index 82596e8e..416f440e 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: GridText.c,v 1.307 2018/03/01 22:23:53 Takeshi.Hataguchi Exp $
+ * $LynxId: GridText.c,v 1.308 2018/03/05 22:35:07 tom Exp $
  *
  *		Character grid hypertext object
  *		===============================
@@ -10666,7 +10666,7 @@ static const char *guess_content_type(const char *filename)
 
     return (format != 0 && non_empty(format->name))
 	? format->name
-	: "text/plain";
+	: STR_PLAINTEXT;
 }
 #endif /* USE_FILE_UPLOAD */
 
@@ -10837,7 +10837,7 @@ static char *escape_or_quote_name(const char *name,
 	StrAllocCopy(escaped1, "Content-Disposition: form-data");
 	HTSprintf(&escaped1, "; name=\"%s\"", name);
 	if (MultipartContentType)
-	    HTSprintf(&escaped1, MultipartContentType, "text/plain");
+	    HTSprintf(&escaped1, MultipartContentType, STR_PLAINTEXT);
 	if (quoting == QUOTE_BASE64)
 	    StrAllocCat(escaped1, "\r\nContent-Transfer-Encoding: base64");
 	StrAllocCat(escaped1, "\r\n\r\n");
@@ -10989,7 +10989,7 @@ int HText_SubmitForm(FormInfo * submit_item, DocInfo *doc,
      * Check the ENCTYPE and set up the appropriate variables.  -FM
      */
     if (submit_item->submit_enctype &&
-	!strncasecomp(submit_item->submit_enctype, "text/plain", 10)) {
+	!strncasecomp(submit_item->submit_enctype, STR_PLAINTEXT, 10)) {
 	/*
 	 * Do not hex escape, and use physical newlines
 	 * to separate name=value pairs.  -FM
@@ -11181,7 +11181,7 @@ int HText_SubmitForm(FormInfo * submit_item, DocInfo *doc,
 			 "application/sgml-form-urlencoded");
 	} else if (PlainText == TRUE) {
 	    StrAllocCopy(content_type_out,
-			 "text/plain");
+			 STR_PLAINTEXT);
 	} else if (Boundary != NULL) {
 	    StrAllocCopy(content_type_out,
 			 "multipart/form-data");
diff --git a/src/HTFWriter.c b/src/HTFWriter.c
index ee123013..f119e4a5 100644
--- a/src/HTFWriter.c
+++ b/src/HTFWriter.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTFWriter.c,v 1.114 2018/03/01 22:14:42 Takeshi.Hataguchi Exp $
+ * $LynxId: HTFWriter.c,v 1.115 2018/03/05 22:38:53 tom Exp $
  *
  *		FILE WRITER				HTFWrite.h
  *		===========
@@ -782,7 +782,7 @@ HTStream *HTSaveAndExecute(HTPresentation *pres,
 	 * Check for a suffix.
 	 * Save the file under a suitably suffixed name.
 	 */
-	if (!strcasecomp(pres->rep->name, "text/html")) {
+	if (!strcasecomp(pres->rep->name, STR_HTML)) {
 	    suffix = HTML_SUFFIX;
 	} else if (!strncasecomp(pres->rep->name, "text/", 5)) {
 	    suffix = TEXT_SUFFIX;
@@ -936,7 +936,7 @@ HTStream *HTSaveToFile(HTPresentation *pres,
 	 * Check for a suffix.
 	 * Save the file under a suitably suffixed name.
 	 */
-	if (!strcasecomp(pres->rep->name, "text/html")) {
+	if (!strcasecomp(pres->rep->name, STR_HTML)) {
 	    suffix = HTML_SUFFIX;
 	} else if (!strncasecomp(pres->rep->name, "text/", 5)) {
 	    suffix = TEXT_SUFFIX;
@@ -1003,7 +1003,7 @@ HTStream *HTSaveToFile(HTPresentation *pres,
     StrAllocCopy(anchor->FileCache, fnam);
   Prepend_BASE:
     if (LYPrependBaseToSource &&
-	!strncasecomp(pres->rep->name, "text/html", 9) &&
+	!strncasecomp(pres->rep->name, STR_HTML, 9) &&
 	!anchor->content_encoding) {
 	/*
 	 * Add the document's base as a BASE tag at the top of the file, so
@@ -1047,7 +1047,7 @@ HTStream *HTSaveToFile(HTPresentation *pres,
 	FREE(temp);
     }
     if (LYPrependCharsetToSource &&
-	!strncasecomp(pres->rep->name, "text/html", 9) &&
+	!strncasecomp(pres->rep->name, STR_HTML, 9) &&
 	!anchor->content_encoding) {
 	/*
 	 * Add the document's charset as a META CHARSET tag at the top of the
@@ -1063,7 +1063,8 @@ HTStream *HTSaveToFile(HTPresentation *pres,
 	    StrAllocCopy(temp, anchor->charset);
 	    LYRemoveBlanks(temp);
 	    fprintf(ret_obj->fp,
-		    "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=%s\">\n\n",
+		    "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"" STR_HTML
+		    "; charset=%s\">\n\n",
 		    temp);
 	}
 	FREE(temp);
@@ -1101,7 +1102,7 @@ HTStream *HTCompressed(HTPresentation *pres,
 	 * We have no idea what we're dealing with, so treat it as a binary
 	 * stream.  - FM
 	 */
-	format = HTAtom_for("application/octet-stream");
+	format = HTAtom_for(STR_BINARY);
 	me = HTStreamStack(format, pres->rep_out, sink, anchor);
 	return me;
     }
@@ -1176,8 +1177,8 @@ HTStream *HTCompressed(HTPresentation *pres,
 	HTOutputFormat == HTAtom_for("www/download") ||		/* download */
 	!strcasecomp(pres->rep_out->name, "www/download") ||	/* download */
 	(traversal &&		/* only handle html or plain text for traversals */
-	 strcasecomp(anchor->content_type, "text/html") &&
-	 strcasecomp(anchor->content_type, "text/plain"))) {
+	 strcasecomp(anchor->content_type, STR_HTML) &&
+	 strcasecomp(anchor->content_type, STR_PLAINTEXT))) {
 	/*
 	 * Cast the Content-Encoding to a Content-Type and pass it back to be
 	 * handled as that type.  - FM
@@ -1232,7 +1233,7 @@ HTStream *HTCompressed(HTPresentation *pres,
      * Get a new temporary filename and substitute a suitable suffix.  - FM
      */
     middle = NULL;
-    if (!strcasecomp(anchor->content_type, "text/html")) {
+    if (!strcasecomp(anchor->content_type, STR_HTML)) {
 	middle = HTML_SUFFIX;
 	middle++;		/* point to 'h' of .htm(l) - kw */
     } else if (!strncasecomp(anchor->content_type, "text/", 5)) {
diff --git a/src/HTInit.c b/src/HTInit.c
index c2c6c71c..42e7525c 100644
--- a/src/HTInit.c
+++ b/src/HTInit.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTInit.c,v 1.89 2016/11/24 15:35:29 tom Exp $
+ * $LynxId: HTInit.c,v 1.90 2018/03/05 22:35:07 tom Exp $
  *
  *		Configuration-specific Initialization		HTInit.c
  *		----------------------------------------
@@ -118,7 +118,7 @@ void HTFormatInit(void)
      * The following support some content types seen here/there:
      */
     SET_INTERNL("application/html", "text/x-c", HTMLToC, 0.5);
-    SET_INTERNL("application/html", "text/plain", HTMLToPlain, 0.5);
+    SET_INTERNL("application/html", STR_PLAINTEXT, HTMLToPlain, 0.5);
     SET_INTERNL("application/html", "www/present", HTMLPresent, 2.0);
     SET_INTERNL("application/html", "www/source", HTPlainPresent, 1.0);
     SET_INTERNL("application/xml", "www/present", HTMLPresent, 2.0);
@@ -144,11 +144,11 @@ void HTFormatInit(void)
      * Other internal types, which must precede the "www/present" entries
      * below (otherwise, they will be filtered out in HTFilterPresentations()).
      */
-    SET_INTERNL("text/css", "text/plain", HTMLToPlain, 0.5);
-    SET_INTERNL("text/html", "text/plain", HTMLToPlain, 0.5);
-    SET_INTERNL("text/html", "text/x-c", HTMLToC, 0.5);
-    SET_INTERNL("text/html", "www/source", HTPlainPresent, 1.0);
-    SET_INTERNL("text/plain", "www/source", HTPlainPresent, 1.0);
+    SET_INTERNL("text/css", STR_PLAINTEXT, HTMLToPlain, 0.5);
+    SET_INTERNL(STR_HTML, STR_PLAINTEXT, HTMLToPlain, 0.5);
+    SET_INTERNL(STR_HTML, "text/x-c", HTMLToC, 0.5);
+    SET_INTERNL(STR_HTML, "www/source", HTPlainPresent, 1.0);
+    SET_INTERNL(STR_PLAINTEXT, "www/source", HTPlainPresent, 1.0);
     SET_INTERNL("text/sgml", "www/source", HTPlainPresent, 1.0);
     SET_INTERNL("text/x-sgml", "www/source", HTPlainPresent, 1.0);
 
@@ -180,8 +180,8 @@ void HTFormatInit(void)
      */
     SET_INTERNL("application/xhtml+xml", "www/present", HTMLPresent, 1.0);
     SET_INTERNL("text/css", "www/present", HTPlainPresent, 1.0);
-    SET_INTERNL("text/html", "www/present", HTMLPresent, 1.0);
-    SET_INTERNL("text/plain", "www/present", HTPlainPresent, 1.0);
+    SET_INTERNL(STR_HTML, "www/present", HTMLPresent, 1.0);
+    SET_INTERNL(STR_PLAINTEXT, "www/present", HTPlainPresent, 1.0);
     SET_INTERNL("text/sgml", "www/present", HTMLPresent, 1.0);
     SET_INTERNL("text/x-sgml", "www/present", HTMLPresent, 2.0);
     SET_INTERNL("text/xml", "www/present", HTMLPresent, 2.0);
@@ -217,8 +217,8 @@ void HTPreparsedFormatInit(void)
 {
     CTrace((tfp, "HTPreparsedFormatInit\n"));
     if (LYPreparsedSource) {
-	SET_INTERNL("text/html", "www/source", HTMLParsedPresent, 1.0);
-	SET_INTERNL("text/html", "www/dump", HTMLParsedPresent, 1.0);
+	SET_INTERNL(STR_HTML, "www/source", HTMLParsedPresent, 1.0);
+	SET_INTERNL(STR_HTML, "www/dump", HTMLParsedPresent, 1.0);
     }
 }
 
@@ -413,8 +413,8 @@ static int ProcessMailcapEntry(FILE *fp, struct MailcapEntry *mc, AcceptMedia me
 	return (0);
     }
     *s++ = '\0';
-    if (!strncasecomp(t, "text/html", 9) ||
-	!strncasecomp(t, "text/plain", 10)) {
+    if (!strncasecomp(t, STR_HTML, 9) ||
+	!strncasecomp(t, STR_PLAINTEXT, 10)) {
 	--s;
 	*s = ';';
 	CTrace((tfp, "ProcessMailcapEntry: Ignoring mailcap entry: %s\n",
@@ -1052,8 +1052,8 @@ void HTFileInit(void)
 	CTrace((tfp, "HTFileInit: Loading default (HTInit) extension maps.\n"));
 
 	/* default suffix interpretation */
-	SET_SUFFIX1("*", "text/plain", "8bit");
-	SET_SUFFIX1("*.*", "text/plain", "8bit");
+	SET_SUFFIX1("*", STR_PLAINTEXT, "8bit");
+	SET_SUFFIX1("*.*", STR_PLAINTEXT, "8bit");
 
 #ifdef EXEC_SCRIPTS
 	/*
@@ -1090,7 +1090,7 @@ void HTFileInit(void)
 	SET_SUFFIX1(".AXP_exe", "application/x-Executable",	"binary");
 	SET_SUFFIX1(".VAX-exe", "application/x-Executable",	"binary");
 	SET_SUFFIX1(".VAX_exe", "application/x-Executable",	"binary");
-	SET_SUFFIX5(".exe",	"application/octet-stream",	"binary", "Executable");
+	SET_SUFFIX5(".exe",	STR_BINARY,			"binary", "Executable");
 
 #ifdef TRADITIONAL_SUFFIXES
 	SET_SUFFIX1(".exe.Z",	"application/x-Comp. Executable", "binary");
@@ -1100,7 +1100,7 @@ void HTFileInit(void)
 #else
 	SET_SUFFIX5(".Z",	"application/x-compress",	"binary", "UNIX Compressed");
 	SET_SUFFIX5(".Z",	NULL,				"compress", "UNIX Compressed");
-	SET_SUFFIX5(".exe.Z",	"application/octet-stream",	"compress", "Executable");
+	SET_SUFFIX5(".exe.Z",	STR_BINARY,			"compress", "Executable");
 	SET_SUFFIX5(".tar_Z",	"application/x-tar",		"compress", "UNIX Compr. Tar");
 	SET_SUFFIX5(".tar.Z",	"application/x-tar",		"compress", "UNIX Compr. Tar");
 #endif
@@ -1151,9 +1151,9 @@ void HTFileInit(void)
 
 	SET_SUFFIX5(".hqx",	"application/mac-binhex40",	"8bit", "Mac BinHex");
 
-	HTSetSuffix5(".o",	"application/octet-stream",	"binary", "Prog. Object", 0.5);
-	HTSetSuffix5(".a",	"application/octet-stream",	"binary", "Prog. Library", 0.5);
-	HTSetSuffix5(".so",	"application/octet-stream",	"binary", "Shared Lib", 0.5);
+	HTSetSuffix5(".o",	STR_BINARY,			"binary", "Prog. Object", 0.5);
+	HTSetSuffix5(".a",	STR_BINARY,			"binary", "Prog. Library", 0.5);
+	HTSetSuffix5(".so",	STR_BINARY,			"binary", "Shared Lib", 0.5);
 #endif
 
 	SET_SUFFIX5(".oda",	"application/oda",		"binary", "ODA");
@@ -1210,19 +1210,19 @@ void HTFileInit(void)
 	SET_SUFFIX1(".bkp",	"application/x-VMS BAK File",	"binary");
 	SET_SUFFIX1(".bck",	"application/x-VMS BAK File",	"binary");
 
-	SET_SUFFIX5(".bkp_gz",	"application/octet-stream",	"gzip", "GNU BAK File");
-	SET_SUFFIX5(".bkp-gz",	"application/octet-stream",	"gzip", "GNU BAK File");
-	SET_SUFFIX5(".bck_gz",	"application/octet-stream",	"gzip", "GNU BAK File");
-	SET_SUFFIX5(".bck-gz",	"application/octet-stream",	"gzip", "GNU BAK File");
+	SET_SUFFIX5(".bkp_gz",	STR_BINARY,			"gzip", "GNU BAK File");
+	SET_SUFFIX5(".bkp-gz",	STR_BINARY,			"gzip", "GNU BAK File");
+	SET_SUFFIX5(".bck_gz",	STR_BINARY,			"gzip", "GNU BAK File");
+	SET_SUFFIX5(".bck-gz",	STR_BINARY,			"gzip", "GNU BAK File");
 
-	SET_SUFFIX5(".bkp-Z",	"application/octet-stream",	"compress", "Comp. BAK File");
-	SET_SUFFIX5(".bkp_Z",	"application/octet-stream",	"compress", "Comp. BAK File");
-	SET_SUFFIX5(".bck-Z",	"application/octet-stream",	"compress", "Comp. BAK File");
-	SET_SUFFIX5(".bck_Z",	"application/octet-stream",	"compress", "Comp. BAK File");
+	SET_SUFFIX5(".bkp-Z",	STR_BINARY,			"compress", "Comp. BAK File");
+	SET_SUFFIX5(".bkp_Z",	STR_BINARY,			"compress", "Comp. BAK File");
+	SET_SUFFIX5(".bck-Z",	STR_BINARY,			"compress", "Comp. BAK File");
+	SET_SUFFIX5(".bck_Z",	STR_BINARY,			"compress", "Comp. BAK File");
 #else
 	HTSetSuffix5(".bak",	NULL,				"binary", "Backup", 0.5);
-	SET_SUFFIX5(".bkp",	"application/octet-stream",	"binary", "VMS BAK File");
-	SET_SUFFIX5(".bck",	"application/octet-stream",	"binary", "VMS BAK File");
+	SET_SUFFIX5(".bkp",	STR_BINARY,			"binary", "VMS BAK File");
+	SET_SUFFIX5(".bck",	STR_BINARY,			"binary", "VMS BAK File");
 #endif
 
 #if defined(TRADITIONAL_SUFFIXES) || defined(VMS)
@@ -1233,11 +1233,11 @@ void HTFileInit(void)
 	SET_SUFFIX1(".decw$book", "application/x-DEC BookReader", "binary");
 	SET_SUFFIX1(".mem",	"application/x-RUNOFF-MANUAL", "8bit");
 #else
-	SET_SUFFIX5(".hlb",	"application/octet-stream",	"binary", "VMS Help Libr.");
-	SET_SUFFIX5(".olb",	"application/octet-stream",	"binary", "VMS Obj. Libr.");
-	SET_SUFFIX5(".tlb",	"application/octet-stream",	"binary", "VMS Text Libr.");
-	SET_SUFFIX5(".obj",	"application/octet-stream",	"binary", "Prog. Object");
-	SET_SUFFIX5(".decw$book", "application/octet-stream",	"binary", "DEC BookReader");
+	SET_SUFFIX5(".hlb",	STR_BINARY,			"binary", "VMS Help Libr.");
+	SET_SUFFIX5(".olb",	STR_BINARY,			"binary", "VMS Obj. Libr.");
+	SET_SUFFIX5(".tlb",	STR_BINARY,			"binary", "VMS Text Libr.");
+	SET_SUFFIX5(".obj",	STR_BINARY,			"binary", "Prog. Object");
+	SET_SUFFIX5(".decw$book", STR_BINARY,			"binary", "DEC BookReader");
 	SET_SUFFIX5(".mem",	"text/x-runoff-manual",		"8bit", "RUNOFF-MANUAL");
 #endif
 
@@ -1320,25 +1320,25 @@ void HTFileInit(void)
 
 	SET_SUFFIX1(".mime",	"message/rfc822",		"8bit");
 
-	SET_SUFFIX1(".c",	"text/plain",			"8bit");
-	SET_SUFFIX1(".cc",	"text/plain",			"8bit");
-	SET_SUFFIX1(".c++",	"text/plain",			"8bit");
-	SET_SUFFIX1(".css",	"text/plain",			"8bit");
-	SET_SUFFIX1(".h",	"text/plain",			"8bit");
-	SET_SUFFIX1(".pl",	"text/plain",			"8bit");
-	SET_SUFFIX1(".text",	"text/plain",			"8bit");
-	SET_SUFFIX1(".txt",	"text/plain",			"8bit");
-
-	SET_SUFFIX1(".php",	"text/html",			"8bit");
-	SET_SUFFIX1(".php3",	"text/html",			"8bit");
-	SET_SUFFIX1(".html3",	"text/html",			"8bit");
-	SET_SUFFIX1(".ht3",	"text/html",			"8bit");
-	SET_SUFFIX1(".phtml",	"text/html",			"8bit");
-	SET_SUFFIX1(".shtml",	"text/html",			"8bit");
-	SET_SUFFIX1(".sht",	"text/html",			"8bit");
-	SET_SUFFIX1(".htmlx",	"text/html",			"8bit");
-	SET_SUFFIX1(".htm",	"text/html",			"8bit");
-	SET_SUFFIX1(".html",	"text/html",			"8bit");
+	SET_SUFFIX1(".c",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".cc",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".c++",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".css",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".h",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".pl",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".text",	STR_PLAINTEXT,			"8bit");
+	SET_SUFFIX1(".txt",	STR_PLAINTEXT,			"8bit");
+
+	SET_SUFFIX1(".php",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".php3",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".html3",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".ht3",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".phtml",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".shtml",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".sht",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".htmlx",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".htm",	STR_HTML,			"8bit");
+	SET_SUFFIX1(".html",	STR_HTML,			"8bit");
 	/* *INDENT-ON* */
 
     } else {			/* LYSuffixRules */
@@ -1362,8 +1362,8 @@ void HTFileInit(void)
      * in a lynx.cfg or mime.types file to be usable for local HTML files at
      * all.  That includes many of the generated user interface pages.  - kw
      */
-    SET_SUFFIX1(".htm", "text/html", "8bit");
-    SET_SUFFIX1(".html", "text/html", "8bit");
+    SET_SUFFIX1(".htm", STR_HTML, "8bit");
+    SET_SUFFIX1(".html", STR_HTML, "8bit");
 #endif /* BUILTIN_SUFFIX_MAPS */
 
     if (LYisAbsPath(global_extension_map)) {
diff --git a/src/LYBookmark.c b/src/LYBookmark.c
index d1a624ec..fcaf6fa1 100644
--- a/src/LYBookmark.c
+++ b/src/LYBookmark.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYBookmark.c,v 1.76 2013/11/28 11:17:59 tom Exp $
+ * $LynxId: LYBookmark.c,v 1.77 2018/03/05 22:32:14 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAlert.h>
@@ -368,7 +368,7 @@ void save_bookmark_link(const char *address,
 	else
 	    fprintf(fp, "<META %s %s>\n",
 		    "http-equiv=\"content-type\"",
-		    "content=\"text/html;charset=iso-2022-jp\"");
+		    "content=\"" STR_HTML ";charset=iso-2022-jp\"");
 #else
 	LYAddMETAcharsetToFD(fp, -1);
 #endif /* !_WINDOWS */
diff --git a/src/LYCgi.c b/src/LYCgi.c
index f4c2bdec..d6c01372 100644
--- a/src/LYCgi.c
+++ b/src/LYCgi.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYCgi.c,v 1.70 2016/11/24 16:38:22 tom Exp $
+ * $LynxId: LYCgi.c,v 1.71 2018/03/05 22:36:09 tom Exp $
  *                   Lynx CGI support                              LYCgi.c
  *                   ================
  *
@@ -670,7 +670,7 @@ static int LYLoadCGI(const char *arg,
 		execve(argv[0], argv, env);
 		exec_errno = errno;
 		PERROR("execve failed");
-		printf("Content-Type: text/plain\r\n\r\n");
+		printf("Content-Type: " STR_PLAINTEXT "\r\n\r\n");
 		if (!anAnchor->isHEAD) {
 		    printf("exec of %s failed", pgm);
 		    printf(": %s.\r\n", LYStrerror(exec_errno));
diff --git a/src/LYCharUtils.c b/src/LYCharUtils.c
index caeac733..12c50a08 100644
--- a/src/LYCharUtils.c
+++ b/src/LYCharUtils.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYCharUtils.c,v 1.130 2017/07/02 19:54:30 tom Exp $
+ * $LynxId: LYCharUtils.c,v 1.131 2018/03/05 22:32:14 tom Exp $
  *
  *  Functions associated with LYCharSets.c and the Lynx version of HTML.c - FM
  *  ==========================================================================
@@ -540,7 +540,7 @@ void LYAddMETAcharsetToStream(HTStream *target, int disp_chndl)
 	disp_chndl = current_char_set;
 
     if (target != 0 && disp_chndl >= 0) {
-	HTSprintf0(&buf, "<META %s content=\"text/html;charset=%s\">\n",
+	HTSprintf0(&buf, "<META %s content=\"" STR_HTML ";charset=%s\">\n",
 		   "http-equiv=\"content-type\"",
 		   LYCharSet_UC[disp_chndl].MIMEname);
 	(*target->isa->put_string) (target, buf);
@@ -605,7 +605,7 @@ void LYAddMETAcharsetToFD(FILE *fd, int disp_chndl)
      * during the lifetime of the file (by toggling raw mode or changing the
      * display character set), so proceed.
      */
-    fprintf(fd, "<META %s content=\"text/html;charset=%s\">\n",
+    fprintf(fd, "<META %s content=\"" STR_HTML ";charset=%s\">\n",
 	    "http-equiv=\"content-type\"",
 	    LYCharSet_UC[disp_chndl].MIMEname);
 }
diff --git a/src/LYGlobalDefs.h b/src/LYGlobalDefs.h
index 6ee3f81c..743b1879 100644
--- a/src/LYGlobalDefs.h
+++ b/src/LYGlobalDefs.h
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYGlobalDefs.h,v 1.142 2017/07/03 23:10:31 tom Exp $
+ * $LynxId: LYGlobalDefs.h,v 1.143 2018/03/05 09:49:59 tom Exp $
  *
  * global variable definitions
  */
@@ -300,6 +300,8 @@ extern "C" {
 
     extern int LYAcceptEncoding;
     extern int LYAcceptMedia;
+    extern int LYContentType;
+    extern const char *ContentTypes[];
     extern int LYTransferRate;	/* see enum TransferRate */
     extern int display_lines;	/* number of lines in the display */
     extern int dump_output_width;
diff --git a/src/LYHistory.c b/src/LYHistory.c
index c3b7dd47..227a5d64 100644
--- a/src/LYHistory.c
+++ b/src/LYHistory.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYHistory.c,v 1.89 2016/11/24 16:38:22 tom Exp $
+ * $LynxId: LYHistory.c,v 1.90 2018/03/05 22:32:14 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTP.h>
@@ -1112,7 +1112,7 @@ static int LYLoadMESSAGES(const char *arg GCC_UNUSED,
     /*
      * This page is a list of messages in display character set.
      */
-    HTSprintf0(&buf, "<META %s content=\"text/html;charset=%s\">\n",
+    HTSprintf0(&buf, "<META %s content=\"" STR_HTML ";charset=%s\">\n",
 	       "http-equiv=\"content-type\"",
 	       LYCharSet_UC[current_char_set].MIMEname);
     PUTS(buf);
diff --git a/src/LYMail.c b/src/LYMail.c
index 218e4d3a..6795aa91 100644
--- a/src/LYMail.c
+++ b/src/LYMail.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMail.c,v 1.97 2014/12/30 22:16:41 Gisle.Vanem Exp $
+ * $LynxId: LYMail.c,v 1.98 2018/03/05 22:36:09 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTParse.h>
@@ -1318,7 +1318,7 @@ void reply_by_mail(char *mail_address,
 	if (!LYHaveCJKCharacterSet &&
 	    strncasecomp(LYCharSet_UC[current_char_set].MIMEname, "x-", 2)
 	    != 0) {
-	    HTSprintf(&header, "Content-Type: text/plain; charset=%s\n",
+	    HTSprintf(&header, "Content-Type: " STR_PLAINTEXT "; charset=%s\n",
 		      LYCharSet_UC[current_char_set].MIMEname);
 	}
 	StrAllocCat(header, "Content-Transfer-Encoding: 8bit\n");
diff --git a/src/LYMain.c b/src/LYMain.c
index 87f8489e..6fc4cd07 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMain.c,v 1.267 2018/03/01 22:27:37 Takeshi.Hataguchi Exp $
+ * $LynxId: LYMain.c,v 1.270 2018/03/05 22:32:14 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTP.h>
@@ -548,6 +548,13 @@ BOOLEAN LYShowTransferRate = TRUE;
 int LYTransferRate = rateKB;
 int LYAcceptEncoding = encodingALL;
 int LYAcceptMedia = mediaOpt1;
+int LYContentType = contentTEXT;
+const char *ContentTypes[] =
+{
+    STR_BINARY,
+    STR_PLAINTEXT,
+    STR_HTML
+};
 char *LYTransferName = NULL;
 
 char *XLoadImageCommand = NULL;	/* Default image viewer for X */
@@ -3356,7 +3363,7 @@ static Config_Type Arg_Table [] =
    ),
    PARSE_FUN(
       "base",		4|FUNCTION_ARG,		base_fun,
-      "prepend a request URL comment and BASE tag to text/html\n\
+      "prepend a request URL comment and BASE tag to " STR_HTML "\n\
 outputs for -source dumps"
    ),
 #ifndef DISABLE_BIBP
@@ -3804,7 +3811,7 @@ terminated by '---' on a line"
    ),
    PARSE_SET(
       "preparsed",	4|SET_ARG,		LYPreparsedSource,
-      "show parsed text/html with -source and in source view\n\
+      "show parsed " STR_HTML " with -source and in source view\n\
 to visualize how lynx behaves with invalid HTML"
    ),
 #ifdef USE_PRETTYSRC
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index eee3d22e..05f5cbce 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMainLoop.c,v 1.238 2018/03/01 22:20:33 Takeshi.Hataguchi Exp $
+ * $LynxId: LYMainLoop.c,v 1.239 2018/03/05 22:38:53 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAccess.h>
@@ -6440,7 +6440,7 @@ int mainloop(void)
 			HTAtom *encoding;
 
 			if (HTFileFormat(temp, &encoding, NULL) != WWW_HTML) {
-			    HTSetSuffix(temp, "text/html", "8bit", 1.0);
+			    HTSetSuffix(temp, STR_HTML, "8bit", 1.0);
 			}
 		    }
 		    if ((cp = strrchr(temp, '/')) != NULL) {
@@ -8080,7 +8080,8 @@ static void exit_immediately_with_error_message(int state, int first_file)
     if (state == NULLFILE) {
 	HTSprintf0(&buf, "%s\n%s\n%s\n",
 		   NonNull(buf2),
-		   gettext("lynx: Start file could not be found or is not text/html or text/plain"),
+		   gettext("lynx: Start file could not be found or is not "
+			   STR_HTML " or " STR_PLAINTEXT),
 		   gettext("      Exiting..."));
     }
 
diff --git a/src/LYMap.c b/src/LYMap.c
index b34ae6d7..29b60f16 100644
--- a/src/LYMap.c
+++ b/src/LYMap.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMap.c,v 1.49 2016/11/24 16:38:22 tom Exp $
+ * $LynxId: LYMap.c,v 1.50 2018/03/05 22:32:14 tom Exp $
  *			Lynx Client-side Image MAP Support	       LYMap.c
  *			==================================
  *
@@ -550,7 +550,7 @@ static int LYLoadIMGmap(const char *arg,
 
     HTSprintf0(&buf, "<html>\n<head>\n");
     PUTS(buf);
-    HTSprintf0(&buf, "<META %s content=\"text/html;charset=%s\">\n",
+    HTSprintf0(&buf, "<META %s content=\"" STR_HTML ";charset=%s\">\n",
 	       "http-equiv=\"content-type\"",
 	       LYCharSet_UC[current_char_set].MIMEname);
     PUTS(buf);
diff --git a/src/LYOptions.c b/src/LYOptions.c
index eaee6be9..8b062834 100644
--- a/src/LYOptions.c
+++ b/src/LYOptions.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYOptions.c,v 1.174 2017/07/04 20:28:05 tom Exp $ */
+/* $LynxId: LYOptions.c,v 1.176 2018/03/05 22:18:05 tom Exp $ */
 #include <HTUtils.h>
 #include <HTFTP.h>
 #include <HTTP.h>		/* 'reloading' flag */
@@ -2117,6 +2117,8 @@ typedef struct {
     const char *HtmlName;
 } OptValues;
 
+#define END_OPTIONS
+
 typedef struct {
     char *tag;
     char *value;
@@ -2132,7 +2134,7 @@ static OptValues bool_values[] =
 {
     {FALSE, N_("OFF"), "OFF"},
     {TRUE, N_("ON"), "ON"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *secure_string = "secure";
@@ -2162,7 +2164,7 @@ static OptValues exec_links_values[] =
 #ifndef NEVER_ALLOW_REMOTE_EXEC
     {EXEC_ALWAYS, N_("ALWAYS ON"), "ALWAYS ON"},
 #endif
-    {0, 0, 0}
+    END_OPTIONS
 };
 #endif /* ENABLE_OPTS_CHANGE_EXEC */
 
@@ -2182,7 +2184,7 @@ static OptValues keypad_mode_values[] =
     {FIELDS_ARE_NUMBERED,
      N_("Form fields are numbered"),
      "forms_numbered"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 static const char *lineedit_mode_string = RC_LINEEDIT_MODE;
 static const char *mail_address_string = RC_PERSONAL_MAIL_ADDRESS;
@@ -2197,7 +2199,7 @@ static OptValues search_type_values[] =
 {
     {FALSE, N_("Case insensitive"), "case_insensitive"},
     {TRUE, N_("Case sensitive"), "case_sensitive"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 #if defined(USE_SLANG) || defined(COLOR_CURSES)
@@ -2208,7 +2210,7 @@ static OptValues show_color_values[] =
     {SHOW_COLOR_OFF, off_string, off_string},
     {SHOW_COLOR_ON, on_string, on_string},
     {SHOW_COLOR_ALWAYS, always_string, always_string},
-    {0, 0, 0}
+    END_OPTIONS
 };
 #endif
 
@@ -2238,7 +2240,7 @@ static OptValues prompt_values[] =
     {FORCE_PROMPT_DFT, prompt_dft_string, prompt_dft_string},
     {FORCE_PROMPT_YES, prompt_yes_string, prompt_yes_string},
     {FORCE_PROMPT_NO, prompt_no_string, prompt_no_string},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *cookie_prompt_string = RC_FORCE_COOKIE_PROMPT;
@@ -2253,7 +2255,7 @@ static OptValues user_mode_values[] =
     {NOVICE_MODE, N_("Novice"), "Novice"},
     {INTERMEDIATE_MODE, N_("Intermediate"), "Intermediate"},
     {ADVANCED_MODE, N_("Advanced"), "Advanced"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *vi_keys_string = RC_VI_KEYS;
@@ -2268,7 +2270,7 @@ static OptValues visited_links_values[] =
     {VISITED_LINKS_AS_LATEST, N_("By Last Visit"), "last_visited"},
     {VISITED_LINKS_AS_LATEST | VISITED_LINKS_REVERSE,
      N_("By Last Visit Reversed"), "last_visited_reversed"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 /*
@@ -2280,7 +2282,7 @@ static OptValues DTD_type_values[] =
 	/* Old_DTD variable */
     {TRUE, N_("relaxed (TagSoup mode)"), "tagsoup"},
     {FALSE, N_("strict (SortaSGML mode)"), "sortasgml"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *bad_html_string = RC_BAD_HTML;
@@ -2290,7 +2292,7 @@ static OptValues bad_html_values[] =
     {BAD_HTML_TRACE, N_("Add to trace-file"), "trace"},
     {BAD_HTML_MESSAGE, N_("Add to LYNXMESSAGES"), "message"},
     {BAD_HTML_WARN, N_("Warn, point to trace-file"), "warn"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *select_popups_string = RC_SELECT_POPUPS;
@@ -2305,7 +2307,7 @@ static OptValues verbose_images_type_values[] =
 	/* verbose_img variable */
     {FALSE, N_("OFF"), "OFF"},
     {TRUE, N_("show filename"), "ON"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *collapse_br_tags_string = RC_COLLAPSE_BR_TAGS;
@@ -2314,7 +2316,7 @@ static OptValues collapse_br_tags_values[] =
 	/* LYCollapseBRs variable */
     {FALSE, N_("OFF"), "OFF"},
     {TRUE, N_("collapse"), "ON"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *trim_blank_lines_string = RC_TRIM_BLANK_LINES;
@@ -2323,7 +2325,7 @@ static OptValues trim_blank_lines_values[] =
 	/* LYtrimBlankLines variable */
     {FALSE, N_("OFF"), "OFF"},
     {TRUE, N_("trim-lines"), "ON"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 /*
@@ -2335,7 +2337,7 @@ static OptValues mbm_values[] =
     {MBM_OFF, N_("OFF"), "OFF"},
     {MBM_STANDARD, N_("STANDARD"), "STANDARD"},
     {MBM_ADVANCED, N_("ADVANCED"), "ADVANCED"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *single_bookmark_string = RC_BOOKMARK_FILE;
@@ -2371,7 +2373,7 @@ static OptValues dired_list_values[] =
     {DIRS_FIRST, N_("Directories first"), "dired_dir"},
     {FILES_FIRST, N_("Files first"), "dired_files"},
     {MIXED_STYLE, N_("Mixed style"), "dired_mixed"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 #ifdef LONG_LIST
@@ -2387,7 +2389,7 @@ static OptValues dired_sort_values[] =
     {ORDER_BY_USER, N_("By User"), "dired_by_user"},
     {ORDER_BY_GROUP, N_("By Group"), "dired_by_group"},
 #endif
-    {0, 0, 0}
+    END_OPTIONS
 };
 #endif /* LONG_LIST */
 #endif /* DIRED_SUPPORT */
@@ -2402,7 +2404,7 @@ static OptValues ftp_sort_values[] =
     {FILE_BY_TYPE, N_("By Type"), "ftp_by_type"},
     {FILE_BY_SIZE, N_("By Size"), "ftp_by_size"},
     {FILE_BY_DATE, N_("By Date"), "ftp_by_date"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 #endif
 
@@ -2422,10 +2424,19 @@ static OptValues rate_values[] =
 #ifdef USE_PROGRESSBAR
     {rateBAR, N_("Show progressbar"), "rate_bar"},
 #endif
-    {0, 0, 0}
+    END_OPTIONS
 };
 #endif /* USE_READPROGRESS */
 
+static const char *preferred_content_string = RC_PREFERRED_CONTENT_TYPE;
+static OptValues content_values[] =
+{
+    {contentBINARY, STR_BINARY, STR_BINARY},
+    {contentTEXT, STR_PLAINTEXT, STR_PLAINTEXT},
+    {contentHTML, STR_HTML, STR_HTML},
+    END_OPTIONS
+};
+
 /*
  * Presentation (MIME) types used in "Accept".
  */
@@ -2437,7 +2448,7 @@ static OptValues media_values[] =
     {mediaOpt3, N_("Also accept user's types"), "media_opt3"},
     {mediaOpt4, N_("Also accept system's types"), "media_opt4"},
     {mediaALL, N_("Accept all types"), "media_all"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *preferred_encoding_string = RC_PREFERRED_ENCODING;
@@ -2455,7 +2466,7 @@ static OptValues encoding_values[] =
     {encodingBZIP2, N_("bzip2"), "encoding_bzip2"},
 #endif
     {encodingALL, N_("All"), "encoding_all"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 /*
@@ -2466,7 +2477,7 @@ static OptValues http_protocol_values[] =
 {
     {HTTP_1_0, N_("HTTP 1.0"), "HTTP_1_0"},
     {HTTP_1_1, N_("HTTP 1.1"), "HTTP_1_1"},
-    {0, 0, 0}
+    END_OPTIONS
 };
 
 static const char *preferred_doc_char_string = RC_PREFERRED_CHARSET;
@@ -3274,6 +3285,11 @@ int postoptions(DocInfo *newdoc)
 	}
 #endif /* USE_READPROGRESS */
 
+	/* Preferred Content Type: SELECT */
+	if (!strcmp(data[i].tag, preferred_content_string)) {
+	    GetOptValues(content_values, data[i].value, &LYContentType);
+	}
+
 	/* Preferred Media Type: SELECT */
 	if (!strcmp(data[i].tag, preferred_media_string)) {
 	    GetOptValues(media_values, data[i].value, &LYAcceptMedia);
@@ -4079,6 +4095,12 @@ static int gen_options(char **newfile)
 		 NonNull(anonftp_password), text_len, "");
 #endif
 
+    /* Preferred content type: SELECT */
+    PutLabel(fp0, gettext("Preferred content type"), preferred_content_string);
+    BeginSelect(fp0, preferred_content_string);
+    PutOptValues(fp0, LYContentType, content_values);
+    EndSelect(fp0);
+
     /* Preferred media type: SELECT */
     PutLabel(fp0, gettext("Preferred media type"), preferred_media_string);
     BeginSelect(fp0, preferred_media_string);
diff --git a/src/LYPrint.c b/src/LYPrint.c
index 9149956e..103a4fd6 100644
--- a/src/LYPrint.c
+++ b/src/LYPrint.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYPrint.c,v 1.105 2014/08/24 10:41:17 tom Exp $
+ * $LynxId: LYPrint.c,v 1.106 2018/03/05 22:38:53 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAccess.h>
@@ -153,7 +153,7 @@ static void SetupFilename(bstring **filename,
 	&& (cp = strrchr((*filename)->str, '.')) != NULL) {
 	format = HTFileFormat((*filename)->str, &encoding, NULL);
 	CTRACE((tfp, "... format %s\n", format->name));
-	if (!strcasecomp(format->name, "text/html") ||
+	if (!strcasecomp(format->name, STR_HTML) ||
 	    !IsUnityEnc(encoding)) {
 	    (*filename)->len = (int) (cp - (*filename)->str);
 	    BStrCat0(*filename, TEXT_SUFFIX);
@@ -437,7 +437,8 @@ static void send_file_to_file(DocInfo *newdoc,
 	    strncasecomp(disp_charset, "x-", 2) == 0) {
 	} else {
 	    fprintf(outfile_fp,
-		    "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=%s\">\n\n",
+		    "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"" STR_HTML
+		    "; charset=%s\">\n\n",
 		    disp_charset);
 	}
     }
@@ -592,7 +593,7 @@ static void send_file_to_mail(DocInfo *newdoc,
 	     * Add Content-Type, Content-Location, and Content-Base headers for
 	     * HTML source.  - FM
 	     */
-	    fprintf(hfd, "Content-Type: text/html");
+	    fprintf(hfd, "Content-Type: " STR_HTML);
 	    if (disp_charset != NULL) {
 		fprintf(hfd, "; charset=%s\n", disp_charset);
 	    } else {
@@ -607,7 +608,7 @@ static void send_file_to_mail(DocInfo *newdoc,
 	     */
 	    if (disp_charset != NULL) {
 		fprintf(hfd,
-			"Content-Type: text/plain; charset=%s\n",
+			"Content-Type: " STR_PLAINTEXT "; charset=%s\n",
 			disp_charset);
 	    }
 	}
@@ -733,7 +734,7 @@ static void send_file_to_mail(DocInfo *newdoc,
 	 * Add Content-Type, Content-Location, and Content-Base headers for
 	 * HTML source.  - FM
 	 */
-	fprintf(outfile_fp, "Content-Type: text/html");
+	fprintf(outfile_fp, "Content-Type: " STR_HTML);
 	if (disp_charset != NULL) {
 	    fprintf(outfile_fp, "; charset=%s\n", disp_charset);
 	} else {
@@ -746,7 +747,7 @@ static void send_file_to_mail(DocInfo *newdoc,
 	 */
 	if (disp_charset != NULL) {
 	    fprintf(outfile_fp,
-		    "Content-Type: text/plain; charset=%s\n",
+		    "Content-Type: " STR_PLAINTEXT "; charset=%s\n",
 		    disp_charset);
 	}
     }
diff --git a/src/LYReadCFG.c b/src/LYReadCFG.c
index 6552ae57..25c7d469 100644
--- a/src/LYReadCFG.c
+++ b/src/LYReadCFG.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYReadCFG.c,v 1.190 2017/07/03 23:21:43 tom Exp $
+ * $LynxId: LYReadCFG.c,v 1.191 2018/03/05 01:57:19 tom Exp $
  */
 #ifndef NO_RULES
 #include <HTRules.h>
@@ -1658,6 +1658,7 @@ static Config_Type Config_Table [] =
      PARSE_STR(RC_PERSONAL_MAILCAP,     personal_type_map),
      PARSE_LST(RC_POSITIONABLE_EDITOR,  positionable_editor),
      PARSE_STR(RC_PREFERRED_CHARSET,    pref_charset),
+     PARSE_ENU(RC_PREFERRED_CONTENT_TYPE, LYContentType, tbl_preferred_content),
      PARSE_ENU(RC_PREFERRED_ENCODING,   LYAcceptEncoding, tbl_preferred_encoding),
      PARSE_STR(RC_PREFERRED_LANGUAGE,   language),
      PARSE_ENU(RC_PREFERRED_MEDIA_TYPES, LYAcceptMedia, tbl_preferred_media),
diff --git a/src/LYrcFile.c b/src/LYrcFile.c
index e42d3f65..221fc0bb 100644
--- a/src/LYrcFile.c
+++ b/src/LYrcFile.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYrcFile.c,v 1.99 2017/07/04 20:30:03 tom Exp $ */
+/* $LynxId: LYrcFile.c,v 1.101 2018/03/05 22:18:05 tom Exp $ */
 #include <HTUtils.h>
 #include <HTFTP.h>
 #include <LYUtils.h>
@@ -90,6 +90,13 @@ Config_Enum tbl_multi_bookmarks[] = {
     { NULL,		-1 }
 };
 
+Config_Enum tbl_preferred_content[] = {
+    { STR_BINARY,	contentBINARY },
+    { STR_PLAINTEXT,	contentTEXT },
+    { STR_HTML,		contentHTML },
+    { NULL,		-1 }
+};
+
 /* the names in this table are used as lowercase in HTTP.c */
 Config_Enum tbl_preferred_encoding[] = {
     { "none",		encodingNONE },
@@ -516,6 +523,8 @@ according to the Accept-Charset header, then the server SHOULD send\n\
 an error response, though the sending of an unacceptable response\n\
 is also allowed.\n\
 ")),
+    MAYBE_ENU(RC_PREFERRED_CONTENT_TYPE, LYContentType,     tbl_preferred_content,
+	      MSG_ENABLE_LYNXRC),
     MAYBE_ENU(RC_PREFERRED_ENCODING,    LYAcceptEncoding,   tbl_preferred_encoding,
 	      MSG_ENABLE_LYNXRC),
     PARSE_STR(RC_PREFERRED_LANGUAGE,    language, N_("\
diff --git a/src/LYrcFile.h b/src/LYrcFile.h
index dd2f99d2..0f6e33cc 100644
--- a/src/LYrcFile.h
+++ b/src/LYrcFile.h
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYrcFile.h,v 1.49 2017/07/03 23:20:33 tom Exp $
+ * $LynxId: LYrcFile.h,v 1.50 2018/03/05 02:00:13 tom Exp $
  */
 #ifndef LYRCFILE_H
 #define LYRCFILE_H
@@ -188,6 +188,7 @@
 #define RC_PERSONAL_MAIL_NAME           "personal_mail_name"
 #define RC_POSITIONABLE_EDITOR          "positionable_editor"
 #define RC_PREFERRED_CHARSET            "preferred_charset"
+#define RC_PREFERRED_CONTENT_TYPE       "preferred_content_type"
 #define RC_PREFERRED_ENCODING           "preferred_encoding"
 #define RC_PREFERRED_LANGUAGE           "preferred_language"
 #define RC_PREFERRED_MEDIA_TYPES        "preferred_media_types"
@@ -290,6 +291,7 @@
 extern Config_Enum tbl_force_prompt[];
 extern Config_Enum tbl_keypad_mode[];
 extern Config_Enum tbl_multi_bookmarks[];
+extern Config_Enum tbl_preferred_content[];
 extern Config_Enum tbl_preferred_encoding[];
 extern Config_Enum tbl_preferred_media[];
 extern Config_Enum tbl_transfer_rate[];
-10 03:35:27 +0100 replaced tabs with 4 spaces in all python files' href='/akspecs/ranger/commit/ranger/config/commands.py?h=v1.9.3&id=d1a1173ddc315f21a3d468f43ac55aa43d31883d'>d1a1173d ^
82cc5eae ^
2e93ab65 ^
82cc5eae ^
2e93ab65 ^

82cc5eae ^
2e93ab65 ^

82cc5eae ^
2e93ab65 ^
82cc5eae ^

2e93ab65 ^
82cc5eae ^
d1a1173d ^




38214674 ^

d4598be6 ^
f7199d8e ^
18223912 ^
e8faa101 ^

a279353c ^
91a552f3 ^
d1a1173d ^


94dc542c ^










dded3cb8 ^
d1a1173d ^
94dc542c ^





d1a1173d ^
94dc542c ^

d1a1173d ^
94dc542c ^

a279353c ^

94dc542c ^
56278294 ^



76791a70 ^
56278294 ^






1f580431 ^
76791a70 ^
1f580431 ^
f08fc583 ^
1f580431 ^

76791a70 ^

1f580431 ^














b3d031a9 ^

51ec08da ^




1f580431 ^

b3d031a9 ^
1f580431 ^


c78ee48d ^
1f580431 ^


97416b53 ^
b3d031a9 ^


a8d2b74b ^
1f580431 ^
b3d031a9 ^
b68d28c1 ^
ea87d005 ^
a3ccb616 ^

d1a1173d ^
3fa65ae8 ^



d1a1173d ^
3fa65ae8 ^





6ff604ba ^

a3ccb616 ^
















b68d28c1 ^
6ff604ba ^
a3ccb616 ^
d1a1173d ^
a3ccb616 ^




20f5182f ^
d1a1173d ^
3fa65ae8 ^
5066893a ^

a3ccb616 ^

9a6688a2 ^
a3ccb616 ^
d1a1173d ^
a3ccb616 ^
d1a1173d ^
9a6688a2 ^
3fa65ae8 ^


9a6688a2 ^
7821555c ^
b68d28c1 ^
d1a1173d ^


76791a70 ^
d1a1173d ^
058a7ebe ^

7821555c ^

6a5d09b8 ^
b68d28c1 ^
f65fc31c ^
c7d79df4 ^

f65fc31c ^
d1a1173d ^


69394f44 ^
d1a1173d ^


20f5182f ^
d1a1173d ^
c7d79df4 ^
f24e3018 ^
d1a1173d ^
c7d79df4 ^

c7d79df4 ^
b3d031a9 ^
03ee065e ^
c7d79df4 ^
d1a1173d ^
c7d79df4 ^



b3d031a9 ^

c7d79df4 ^

69394f44 ^
6c9e8657 ^

b3d031a9 ^
ad482d30 ^
d1a1173d ^
d1a1173d ^
51ec08da ^




d1a1173d ^

deb16c1d ^
b3c62562 ^
c7d79df4 ^


c7d79df4 ^
d1a1173d ^
deb16c1d ^
c7d79df4 ^
e209b661 ^
9ce8839a ^
fc9c5284 ^
9ce8839a ^


fc9c5284 ^


9ce8839a ^
fc9c5284 ^






9ce8839a ^




9ce8839a ^



fc9c5284 ^
9ce8839a ^












fc9c5284 ^
9ce8839a ^


cfc8a68e ^
b68d28c1 ^
d1a1173d ^







c256b5d0 ^
7f40b268 ^
d1a1173d ^









cfc8a68e ^

f93725f5 ^
b68d28c1 ^
d1a1173d ^


76791a70 ^
d1a1173d ^




1687e0f4 ^
d1a1173d ^
1687e0f4 ^

d1a1173d ^
f93725f5 ^

e30d1c78 ^
b68d28c1 ^
d1a1173d ^
f7199d8e ^
d1a1173d ^

dded3cb8 ^
d1a1173d ^
65b8a381 ^
07262c19 ^
d1a1173d ^
f7199d8e ^
8083eb60 ^
d1a1173d ^
b3d031a9 ^
8083eb60 ^
51ec08da ^

65b8a381 ^
d4598be6 ^
b3d031a9 ^

d1a1173d ^
18223912 ^
e30d1c78 ^


b68d28c1 ^
d1a1173d ^
f7199d8e ^
d1a1173d ^

dded3cb8 ^
d1a1173d ^
65b8a381 ^
d1a1173d ^
f7199d8e ^
8083eb60 ^
d1a1173d ^
b3d031a9 ^
8083eb60 ^
d4598be6 ^
76791a70 ^
b3d031a9 ^

18223912 ^
e30d1c78 ^

cfc8a68e ^
b68d28c1 ^
cfc8a68e ^
d1a1173d ^



cfc8a68e ^

6a5d09b8 ^
b68d28c1 ^
f65fc31c ^
d1a1173d ^

20f5182f ^
d1a1173d ^

eb2c650f ^
301b488b ^
d1a1173d ^

eb2c650f ^
d1a1173d ^

301b488b ^
97416b53 ^
d1a1173d ^
f277b681 ^
301b488b ^

b68d28c1 ^
301b488b ^
d1a1173d ^

301b488b ^
d1a1173d ^

301b488b ^
d1a1173d ^




6a5d09b8 ^
97416b53 ^
d1a1173d ^
f277b681 ^
6a5d09b8 ^
01c8834f ^
b68d28c1 ^
01c8834f ^
d1a1173d ^

01c8834f ^
d1a1173d ^




01c8834f ^
97416b53 ^
d1a1173d ^
80bdc005 ^
01c8834f ^
014c4184 ^
b68d28c1 ^
d1a1173d ^













23c65726 ^
e9f00850 ^
d1a1173d ^





b3d031a9 ^
d1a1173d ^





b3d031a9 ^
d1a1173d ^
b3d031a9 ^
d1a1173d ^


1687e0f4 ^
4bb5e493 ^

014c4184 ^

2efce540 ^
b68d28c1 ^
f65fc31c ^
d1a1173d ^

20f5182f ^
d1a1173d ^
07262c19 ^
d1a1173d ^
71c57a7b ^
d1a1173d ^
71c57a7b ^
d1a1173d ^

71c57a7b ^
df4c2ca5 ^
18223912 ^
bbaf1b08 ^
d1a1173d ^

71c57a7b ^
9c1f5c2a ^
df4c2ca5 ^




34266423 ^
18223912 ^

97416b53 ^
d1a1173d ^
4ab0172d ^
ab41c776 ^
30212099 ^
fc9c5284 ^
5210a0d5 ^
fc9c5284 ^





5210a0d5 ^
fc9c5284 ^





5210a0d5 ^

41478b10 ^

b3d031a9 ^
41478b10 ^

fc9c5284 ^






5210a0d5 ^
fc9c5284 ^







4ab0172d ^
ab41c776 ^
277ecc9e ^
b68d28c1 ^
277ecc9e ^
d1a1173d ^
20f5182f ^
d1a1173d ^

20f5182f ^
d1a1173d ^


20f5182f ^
d1a1173d ^
b3d031a9 ^

6b4c8718 ^


b3d031a9 ^
277ecc9e ^
d1a1173d ^
b3d031a9 ^
d1a1173d ^




277ecc9e ^
916c2390 ^
d1a1173d ^
916c2390 ^
1687e0f4 ^
d1a1173d ^
277ecc9e ^
1687e0f4 ^


277ecc9e ^
20f5182f ^
ad9ad416 ^
b68d28c1 ^
d1a1173d ^







76791a70 ^
b3d031a9 ^
d1a1173d ^

07262c19 ^
d1a1173d ^
e37671c0 ^
d1a1173d ^

a949de17 ^
7d381944 ^

d1a1173d ^




7d381944 ^


20ea7180 ^
d1a1173d ^
7d381944 ^
d1a1173d ^



af17ede9 ^
d1a1173d ^
3259b311 ^
11920818 ^

d4598be6 ^
76791a70 ^
3259b311 ^
d1a1173d ^
3259b311 ^
d1a1173d ^
3259b311 ^
d1a1173d ^
af17ede9 ^


d1a1173d ^
3259b311 ^

af17ede9 ^

d1a1173d ^

ad9ad416 ^
af17ede9 ^






dc86cf76 ^
af17ede9 ^






dc86cf76 ^

ad9ad416 ^
ab41c776 ^
47c2cf69 ^
b68d28c1 ^
47c2cf69 ^
d1a1173d ^

47c2cf69 ^
d1a1173d ^
d1a1173d ^
b3d031a9 ^
47c2cf69 ^
d1a1173d ^

47c2cf69 ^
b3d031a9 ^

f16bbc20 ^
b3d031a9 ^
18223912 ^
f16bbc20 ^
d1a1173d ^
b3d031a9 ^

d1a1173d ^

47c2cf69 ^
d1a1173d ^
b3d031a9 ^

47c2cf69 ^
18223912 ^

97416b53 ^
d1a1173d ^
e2325c56 ^
84a22ae0 ^
47c2cf69 ^

b1d25114 ^
b68d28c1 ^
d1a1173d ^



dded3cb8 ^
d1a1173d ^
45231bda ^











b3d031a9 ^


5e0bfd03 ^
b3d031a9 ^
b1d25114 ^

d07c8c12 ^
b68d28c1 ^

d1a1173d ^


d07c8c12 ^
d1a1173d ^


d07c8c12 ^
d1a1173d ^

d07c8c12 ^
18223912 ^

d07c8c12 ^
0d7171c2 ^
b68d28c1 ^

d1a1173d ^


0d7171c2 ^


b68d28c1 ^

d1a1173d ^


0d7171c2 ^


b68d28c1 ^

d1a1173d ^


0d7171c2 ^

4bea11d6 ^
b68d28c1 ^

d1a1173d ^


4bea11d6 ^
d1a1173d ^


4bea11d6 ^

e21fb9b5 ^
b68d28c1 ^

d1a1173d ^


e21fb9b5 ^


b68d28c1 ^

d1a1173d ^


e21fb9b5 ^


b68d28c1 ^

d1a1173d ^


e21fb9b5 ^

b1d25114 ^
b68d28c1 ^

d1a1173d ^
b1d25114 ^
d1a1173d ^






41df56be ^
d1a1173d ^
7968844c ^
6b4c8718 ^

7968844c ^
d1a1173d ^
41df56be ^


d1a1173d ^
b68d28c1 ^
d1a1173d ^
41df56be ^
d1a1173d ^




41df56be ^


d1a1173d ^
b68d28c1 ^
d1a1173d ^


41df56be ^


d1a1173d ^
b68d28c1 ^
d1a1173d ^


b1d25114 ^

5f64bc20 ^
fc9c5284 ^
5f64bc20 ^

fc9c5284 ^















d7d2b7dd ^


5f64bc20 ^
51ec08da ^

76791a70 ^
51ec08da ^



76791a70 ^
51ec08da ^







5f64bc20 ^
fc9c5284 ^

5f64bc20 ^


b3d031a9 ^
5f64bc20 ^
76791a70 ^
5f64bc20 ^
76791a70 ^

5f64bc20 ^
a573bda3 ^


7f40b268 ^
a573bda3 ^
5f64bc20 ^
b3d031a9 ^

5f64bc20 ^
b3d031a9 ^


5f64bc20 ^
5ecfa129 ^


5f64bc20 ^



e9d8f700 ^
c06b62b3 ^



6891ddc4 ^

5f64bc20 ^
a9ce3aee ^
b16f1156 ^




a9ce3aee ^
6cae0edf ^
a9ce3aee ^
5f64bc20 ^


d51f8d5a ^
5f64bc20 ^




5ecfa129 ^


d51f8d5a ^
5f64bc20 ^



97416b53 ^

5f64bc20 ^




76791a70 ^

5f64bc20 ^

15f81147 ^


5f64bc20 ^























5f64bc20 ^
84a22ae0 ^
c38c7f2a ^
a573bda3 ^


84a22ae0 ^
5f64bc20 ^

1687e0f4 ^
5f64bc20 ^



76791a70 ^

5f64bc20 ^

7f40b268 ^
5f64bc20 ^










dff0e71b ^
5f64bc20 ^










2375cc57 ^















c82a8a76 ^










c82a8a76 ^


6ded89ed ^
c82a8a76 ^
6ded89ed ^
c82a8a76 ^


fbabb96b ^
b68d28c1 ^
d1a1173d ^





e0a24ff2 ^
d1a1173d ^


bd87e709 ^
ab41c776 ^
34fec205 ^
bd87e709 ^
34fec205 ^
bd87e709 ^
34fec205 ^
bd87e709 ^
34fec205 ^

bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
b3d031a9 ^

34fec205 ^

6b4c8718 ^


34fec205 ^




bd87e709 ^
bd87e709 ^

bd87e709 ^
ab41c776 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
76791a70 ^
bd87e709 ^
0f4ae7b5 ^
bd87e709 ^
431349cb ^


a9000364 ^
6b4c8718 ^

d599ab15 ^
bd87e709 ^
431349cb ^
bd87e709 ^
ab41c776 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
bd87e709 ^
76791a70 ^
bd87e709 ^
0f4ae7b5 ^
1c2a52c0 ^
431349cb ^


a9000364 ^
6b4c8718 ^

d599ab15 ^
431349cb ^

be79683c ^
a80476a1 ^
be79683c ^
a80476a1 ^
ab41c776 ^
a80476a1 ^
2d7dc042 ^
a80476a1 ^
2d7dc042 ^
a80476a1 ^
2d7dc042 ^
2d7dc042 ^
a80476a1 ^

dded3cb8 ^
a80476a1 ^

2d7dc042 ^


a80476a1 ^


b132301b ^


2d7dc042 ^
a80476a1 ^



987d6185 ^

a80476a1 ^
2d7dc042 ^


a80476a1 ^
be79683c ^
a80476a1 ^
be79683c ^
a80476a1 ^
be79683c ^
be79683c ^

a80476a1 ^
be79683c ^
a80476a1 ^
aa4cb479 ^
b3d031a9 ^

2d7dc042 ^
be79683c ^
97416b53 ^
a80476a1 ^

85081e15 ^
0ca4102e ^
84a22ae0 ^

0ca4102e ^
a8d2b74b ^














b3d031a9 ^
a8d2b74b ^


0492545c ^
a8d2b74b ^

185c022e ^
a8d2b74b ^



cb6be2e0 ^




c2469bcf ^
cb6be2e0 ^




591c7ce7 ^
cb6be2e0 ^





c2469bcf ^
691a8dcc ^
74392269 ^



















74392269 ^


cb6be2e0 ^
5fcaeafa ^
591c7ce7 ^
5fcaeafa ^
c2469bcf ^
cb6be2e0 ^
74392269 ^

c2469bcf ^
cb6be2e0 ^

ffc44b20 ^
cb6be2e0 ^







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781