970feb
From bccfb8ac43da56cb1f53c4b421e09dcac1fd1af0 Mon Sep 17 00:00:00 2001
970feb
From: Kamil Dudka <kdudka@redhat.com>
970feb
Date: Wed, 13 Feb 2013 15:17:08 +0100
970feb
Subject: [PATCH] lynx-2.8.6-redhat.patch rebased for 2.8.9
970feb
970feb
---
970feb
 lynx.cfg   | 18 ++++++++++++------
970feb
 userdefs.h | 18 +++++++++---------
970feb
 2 files changed, 21 insertions(+), 15 deletions(-)
970feb
970feb
diff --git a/lynx.cfg b/lynx.cfg
970feb
index f01782f..ccc0846 100644
970feb
--- a/lynx.cfg
970feb
+++ b/lynx.cfg
970feb
@@ -1,7 +1,9 @@
970feb
 # $LynxId: lynx.cfg,v 1.302 2018/07/08 15:22:44 tom Exp $
970feb
 # lynx.cfg file.
970feb
-# The default placement for this file is /usr/local/lib/lynx.cfg (Unix)
970feb
-#                                     or Lynx_Dir:lynx.cfg (VMS)
970feb
+# The default placement for this file is /etc/lynx.cfg
970feb
+#
970feb
+# Please don't edit this file directly (it is updated with every Red Hat
970feb
+# Linux update, overwriting your changes). Instead, edit /etc/lynx-site.cfg.
970feb
 #
970feb
 # $Format: "#PRCS LYNX_VERSION \"$ProjectVersion$\""$
970feb
 #PRCS LYNX_VERSION "2.8.9rel.1"
970feb
@@ -108,7 +110,7 @@
970feb
 #
970feb
 # Normally we expect you will connect to a remote site, e.g., the Lynx starting
970feb
 # site:
970feb
-STARTFILE:https://lynx.invisible-island.net/
970feb
+STARTFILE:https://start.fedoraproject.org/
970feb
 #
970feb
 # As an alternative, you may want to use a local URL.  A good choice for this is
970feb
 # the user's home directory:
970feb
@@ -142,7 +144,7 @@ HELPFILE:https://lynx.invisible-island.net/lynx_help/lynx_help_main.html
970feb
 # An index to your CWIS can be placed here or a document containing
970feb
 # pointers to lots of interesting places on the web.
970feb
 #
970feb
-DEFAULT_INDEX_FILE:http://scout.wisc.edu/
970feb
+DEFAULT_INDEX_FILE:http://www.google.com/
970feb
 
970feb
 .h1 Interaction
970feb
 
970feb
@@ -454,7 +456,7 @@ DEFAULT_INDEX_FILE:http://scout.wisc.edu/
970feb
 # Find RFC 1345 at
970feb
 .url http://tools.ietf.org/html/rfc1345
970feb
 #
970feb
-#CHARACTER_SET:iso-8859-1
970feb
+CHARACTER_SET:utf-8
970feb
 
970feb
 .h2 LOCALE_CHARSET
970feb
 # LOCALE_CHARSET overrides CHARACTER_SET if true, using the current locale to
970feb
@@ -467,7 +469,7 @@ DEFAULT_INDEX_FILE:http://scout.wisc.edu/
970feb
 # values and their relationship to the locale value is not.  GNU libiconv
970feb
 # happens to give useful values, but other implementations are not guaranteed
970feb
 # to do this.
970feb
-#LOCALE_CHARSET:FALSE
970feb
+LOCALE_CHARSET:TRUE
970feb
 
970feb
 .h2 HTML5_CHARSETS
970feb
 # HTML5_CHARSETS is an alternative to ASSUME_CHARSET and ASSUME_LOCAL_CHARSET.
970feb
@@ -1847,6 +1849,9 @@ DEFAULT_INDEX_FILE:http://scout.wisc.edu/
970feb
 .ex
970feb
 #DOWNLOADER:Save OS/390 binary file: iconv -f IBM-1047 -t ISO8859-1 %s >%s:FALSE
970feb
 
970feb
+# Added by Red Hat:
970feb
+DOWNLOADER:View with less:less %s:TRUE
970feb
+
970feb
 .h1 Interaction
970feb
 
970feb
 .h2 NO_DOT_FILES
970feb
@@ -3451,6 +3456,7 @@ COLOR:6:brightred:black
970feb
 #ENABLE_LYNXRC:VI_KEYS:ON
970feb
 #ENABLE_LYNXRC:VISITED_LINKS:ON
970feb
 .fi
970feb
+INCLUDE:/etc/lynx-site.cfg
970feb
 
970feb
 .h1 External Programs
970feb
 # Any of the compiled-in pathnames of external programs can be overridden
970feb
diff --git a/userdefs.h b/userdefs.h
970feb
index 40a954b..4afe835 100644
970feb
--- a/userdefs.h
970feb
+++ b/userdefs.h
970feb
@@ -105,7 +105,7 @@
970feb
  * mailcap files (see the examples in the samples directory).
970feb
  */
970feb
 #ifndef LYNX_CFG_FILE
970feb
-#define LYNX_CFG_FILE "Lynx_Dir:lynx.cfg"
970feb
+#define LYNX_CFG_FILE "/etc/lynx.cfg"
970feb
 #endif /* LYNX_CFG_FILE */
970feb
 
970feb
 #ifndef LYNX_CFG_PATH
970feb
@@ -119,8 +119,8 @@
970feb
  * Mappings in these global and personal files override any SUFFIX
970feb
  * definitions in lynx.cfg and built-in defaults from src/HTInit.c.
970feb
  */
970feb
-#define GLOBAL_EXTENSION_MAP "Lynx_Dir:mime.types"
970feb
-#define PERSONAL_EXTENSION_MAP "mime.types"
970feb
+#define GLOBAL_EXTENSION_MAP "/etc/mime.types"
970feb
+#define PERSONAL_EXTENSION_MAP ".mime.types"
970feb
 
970feb
 /**************************
970feb
  * The MAILCAP file allows you to map file MIME types to
970feb
@@ -129,7 +129,7 @@
970feb
  * Mappings in these global and personal files override any VIEWER
970feb
  * definitions in lynx.cfg and built-in defaults from src/HTInit.c.
970feb
  */
970feb
-#define GLOBAL_MAILCAP "Lynx_Dir:mailcap"
970feb
+#define GLOBAL_MAILCAP "/etc/mailcap"
970feb
 #define PERSONAL_MAILCAP ".mailcap"
970feb
 
970feb
 /**************************
970feb
@@ -300,8 +300,8 @@
970feb
 #define LYNX_CFG_PATH "."
970feb
 #define LYNX_CFG_FILE "./lynx.cfg"
970feb
 #else
970feb
-#define LYNX_CFG_PATH "/usr/local/lib"
970feb
-#define LYNX_CFG_FILE "/usr/local/lib/lynx.cfg"
970feb
+#define LYNX_CFG_PATH "/etc"
970feb
+#define LYNX_CFG_FILE "/etc/lynx.cfg"
970feb
 #endif /* DOSPATH */
970feb
 #endif /* LYNX_CFG_FILE */
970feb
 #endif /* HAVE_CONFIG_H */
970feb
@@ -345,7 +345,7 @@
970feb
  * use any default viewers for image types.  Note that open is used as
970feb
  * the default for NeXT, instead of the XLOADIMAGE_COMMAND definition.
970feb
  */
970feb
-#define XLOADIMAGE_COMMAND "xli %s &"
970feb
+#define XLOADIMAGE_COMMAND "display %s &"
970feb
 
970feb
 /**************************
970feb
  * For UNIX systems, SYSTEM_MAIL and SYSTEM_MAIL_FLAGS are set by the
970feb
@@ -366,7 +366,7 @@
970feb
  * the "TMPDIR" (unix), or "TEMP" or "TMP" (Windows,DOS,OS/2)
970feb
  * variable.
970feb
  */
970feb
-#define TEMP_SPACE "/tmp/"
970feb
+#define TEMP_SPACE "~"
970feb
 
970feb
 /********************************
970feb
  * Comment this line out to disable code that implements command logging
970feb
@@ -1175,7 +1175,7 @@
970feb
  * OSU server distribution.
970feb
  */
970feb
 #ifndef HAVE_CONFIG_H
970feb
-/* #define LYNXCGI_LINKS */
970feb
+#define LYNXCGI_LINKS
970feb
 #endif
970feb
 
970feb
 /*********************************
970feb
-- 
970feb
2.9.4
970feb