~ubuntu-branches/ubuntu/jaunty/lynx-cur/jaunty

« back to all changes in this revision

Viewing changes to debian/patches/patch-2

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2008-12-23 17:08:55 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20081223170855-qvgxw0fhrxwsuqsj
Tags: 2.8.7dev11-2
* Fix HTFile.c with a patch of Thomas Dickey.  (Closes: #509321)
* Fix lynx.cur.wrapper so that it will read the default lynx.cfg
  (Closes: #509411)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh -e
2
2
##
3
3
## All lines beginning with `## DP:' are a description of the patch.
4
 
## DP: Align the manpage to Debian behaviour
5
 
## utf patch of patakuti 
6
 
## http://www.t3.rim.or.jp/~patakuti/tmp/lynx/lynx.patch_for_285dev14UTF8
7
 
## modified for 2.8.6dev.3
 
4
## DP: a patch of TD for Bug#509321
8
5
 
9
6
if [ $# -ne 1 ]; then
10
7
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
20
17
exit 0
21
18
 
22
19
@DPATCH@
23
 
--- userdefs.h.~1.101.~ 2007-08-03 10:07:39.000000000 +0900
24
 
+++ userdefs.h  2007-08-24 14:06:05.000000000 +0900
25
 
@@ -340,6 +340,9 @@
26
 
  * configure-script.
27
 
  */
28
 
 
29
 
+#define SYSTEM_MAIL "sendmail"
30
 
+#define SYSTEM_MAIL_FLAGS "-t -oi"
31
 
+
32
 
 /**************************
33
 
  * A place to put temporary files, it is almost always in "/tmp/"
34
 
  * for UNIX systems.  If you include "$USER" in the definition
35
 
@@ -1503,6 +1506,10 @@
36
 
         * locations, you probably will have to preset the path to them with
37
 
         * environment variables (see INSTALLATION, Section II-1d).
38
 
         */
39
 
+
40
 
+#define TELNET_PATH     "/usr/bin/telnet"
41
 
+#define RLOGIN_PATH     "/usr/bin/rlogin"
42
 
+
43
 
 #endif /* DOSPATH */
44
 
 #endif /* VMS */
45
 
 
 
20
--- WWW/Library/Implementation/HTFile.c.orig    2008-12-17 23:34:01.000000000 +0900
 
21
+++ WWW/Library/Implementation/HTFile.c 2008-12-23 16:58:35.000000000 +0900
 
22
@@ -1336,8 +1336,10 @@
 
23
 {
 
24
     CompressFileType method = cftNone;
 
25
 
 
26
-    if (!strncasecomp(ct, "application/gzip", 16) ||
 
27
-       !strncasecomp(ct, "application/x-gzip", 18)) {
 
28
+    if (ct == 0) {
 
29
+       method = cftNone;
 
30
+    } else if (!strncasecomp(ct, "application/gzip", 16) ||
 
31
+               !strncasecomp(ct, "application/x-gzip", 18)) {
 
32
        method = cftGzip;
 
33
     } else if (!strncasecomp(ct, "application/compress", 20) ||
 
34
               !strncasecomp(ct, "application/x-compress", 22)) {