lynx and hunspell

This commit is contained in:
Ertuğrul Erata
2015-07-22 16:43:57 +03:00
parent 9f19e03a9f
commit 1b022184e9
14 changed files with 869 additions and 0 deletions
@@ -0,0 +1,15 @@
--- lynx2-8-6/WWW/Library/Implementation/HTTelnet.c.pix 2006-05-30 00:44:54.000000000 +0200
+++ lynx2-8-6/WWW/Library/Implementation/HTTelnet.c 2006-11-16 17:27:19.000000000 +0100
@@ -64,6 +64,12 @@
strcmp(acc_method, "rlogin") == 0 ? rlogin :
strcmp(acc_method, "tn3270") == 0 ? tn3270 : telnet;
+ /* don't accept command line args to telnet */
+ /* notting@redhat.com, 8-25-99 */
+ for (; *host && *host =='-' ; host ++) {
+ *host = '\0';
+ }
+
/*
* Modified to allow for odd chars in a username only if exists.
* 05-28-94 Lynx 2-3-1 Garrett Arch Blythe
@@ -0,0 +1,11 @@
--- lynx2-8-6/samples/lynx.lss.pix 2006-09-19 02:28:28.000000000 +0200
+++ lynx2-8-6/samples/lynx.lss 2006-11-16 17:23:21.000000000 +0100
@@ -34,7 +34,7 @@
sup: bold: yellow
sub: dim: gray
li: normal: magenta
-code: normal: cyan
+code: normal: white
cite: normal: cyan
table: normal: brightcyan
@@ -0,0 +1,33 @@
--- lynx2-8-7/userdefs.h.orig 2009-06-07 02:30:35.000000000 +0200
+++ lynx2-8-7/userdefs.h 2010-01-03 14:41:42.000000000 +0100
@@ -115,8 +115,8 @@
* Mappings in these global and personal files override any SUFFIX
* definitions in lynx.cfg and built-in defaults from src/HTInit.c.
*/
-#define GLOBAL_EXTENSION_MAP "Lynx_Dir:mime.types"
-#define PERSONAL_EXTENSION_MAP "mime.types"
+#define GLOBAL_EXTENSION_MAP "/etc/mime.types"
+#define PERSONAL_EXTENSION_MAP ".mime.types"
/**************************
* The MAILCAP file allows you to map file MIME types to
@@ -125,7 +125,7 @@
* Mappings in these global and personal files override any VIEWER
* definitions in lynx.cfg and built-in defaults from src/HTInit.c.
*/
-#define GLOBAL_MAILCAP "Lynx_Dir:mailcap"
+#define GLOBAL_MAILCAP "/etc/mailcap"
#define PERSONAL_MAILCAP ".mailcap"
/**************************
--- lynx2-8-7/lynx.cfg.orig 2009-06-24 01:53:58.000000000 +0200
+++ lynx2-8-7/lynx.cfg 2010-01-03 14:41:42.000000000 +0100
@@ -12,7 +12,7 @@
# Definition pairs are of the form VARIABLE:DEFINITION
# NO spaces are allowed between the pair items.
#
-# If you do not have write access to /usr/local/lib you may change
+# If you do not have write access to /usr/bin you may change
# the default location of this file in the userdefs.h file and recompile,
# or specify its location on the command line with the "-cfg"
# command line option.
@@ -0,0 +1,43 @@
--- lynx2-8-7/src/LYMain.c.orig 2009-07-06 01:52:33.000000000 +0200
+++ lynx2-8-7/src/LYMain.c 2010-01-03 14:58:31.000000000 +0100
@@ -967,6 +967,7 @@
struct stat dir_info;
char filename[LY_MAXPATH];
BOOL LYGetStdinArgs = FALSE;
+ struct stat st;
#ifdef _WINDOWS
WSADATA WSAData;
@@ -1209,6 +1210,21 @@
#endif
LYTildeExpand(&lynx_temp_space, TRUE);
+
+ if (stat(lynx_temp_space, &st) < 0) {
+ if (errno = ENOENT) {
+ printf("Creating dir %s\n", lynx_temp_space);
+ mkdir(lynx_temp_space, 0700);
+ }
+ }
+
+ if (stat(lynx_temp_space, &st) < 0) {
+ if (errno = ENOENT) {
+ printf("Can't create %s, let's try /tmp/\n", lynx_temp_space);
+ lynx_temp_space = "/tmp/";
+ }
+ }
+
if ((cp = strstr(lynx_temp_space, "$USER")) != NULL) {
char *cp1;
--- lynx2-8-7/userdefs.h.orig 2010-01-03 14:58:31.000000000 +0100
+++ lynx2-8-7/userdefs.h 2010-01-03 14:58:31.000000000 +0100
@@ -354,7 +354,7 @@
* the "TMPDIR" (unix), or "TEMP" or "TMP" (Windows,DOS,OS/2)
* variable.
*/
-#define TEMP_SPACE "/tmp/"
+#define TEMP_SPACE "~/tmp/"
/********************************
* Comment this line out to disable code that implements command logging