lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV 2.7.1ac-0.90 nits


From: Sander van Malssen
Subject: LYNX-DEV 2.7.1ac-0.90 nits
Date: Thu, 6 Nov 1997 14:54:25 +0100

Hi folks,

First, a small patch for src/LYReadCFG.c that should speak for itself:


--- lynx2-7-1/src/LYReadCFG.c.~1~       Tue Sep  9 21:02:36 1997
+++ lynx2-7-1/src/LYReadCFG.c   Wed Nov  5 22:53:09 1997
@@ -612,6 +612,11 @@
        } else if (!strncasecomp(buffer, "DEFAULT_CACHE_SIZE:", 19)) {
                HTCacheSize = atoi(buffer+19);
 
+               /*
+                *  Limit size.
+                */
+               if (HTCacheSize < 2) HTCacheSize = 2;
+
        } else if (!system_editor &&
                   !strncasecomp(buffer, "DEFAULT_EDITOR:", 15)) {
            StrAllocCopy(editor, buffer+15);


Secondly, I noticed a bug in configure that makes disabling character
translations impossible:


--- lynx2-7-1/configure.~1~     Wed Nov  5 22:55:31 1997
+++ lynx2-7-1/configure Wed Nov  5 22:55:17 1997
@@ -6630,7 +6630,7 @@
   enableval="$enable_char_trans"
   test "$enableval" != no && enableval=yes
   if test "$enableval" != "yes" ; then
-    use_char_trans=$withval
+    use_char_trans=$enableval
   else
     use_char_trans=yes
   fi
--- lynx2-7-1/configure.in.~1~  Wed Oct 22 16:29:34 1997
+++ lynx2-7-1/configure.in      Wed Nov  5 22:54:33 1997
@@ -351,7 +351,7 @@
 AC_MSG_CHECKING(if character-translation code should be used)
 CF_ARG_DISABLE(char-trans,
 [  --disable-char-trans    enable optional character-translations],
-       [use_char_trans=$withval],
+       [use_char_trans=$enableval],
        [use_char_trans=yes])
 AC_MSG_RESULT($use_char_trans)
 
(Or should this just be use_char_trans=no instead of
use_char_trans=$enableval ?)

Unfortunately, when you then try to build lynx without character
translations it turns out that the libwww code needs some work to
compile. (I've only just started to look at 2.7.1ac so forgive me if I
don't have a patch for that one ready).


Cheers,
Sander
-- 
Sander van Malssen -- address@hidden -- http://www.cistron.nl/~svm/
        * The 1-2-5 Page: http://www.cistron.nl/~svm/music/ *
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]