View | Details | Raw Unified | Return to bug 166659
Collapse All | Expand All

(-)./Makefile (-1 / +1 lines)
Lines 122-128 Link Here
122
122
123
PORTNAME=	mutt-devel
123
PORTNAME=	mutt-devel
124
PORTVERSION=	1.5.21
124
PORTVERSION=	1.5.21
125
PORTREVISION?=	3
125
PORTREVISION?=	4
126
CATEGORIES+=	mail ipv6
126
CATEGORIES+=	mail ipv6
127
.if defined(WITH_MUTT_NNTP)
127
.if defined(WITH_MUTT_NNTP)
128
CATEGORIES+=	news
128
CATEGORIES+=	news
(-)./files/patch-gnutls-CN-validation (+29 lines)
Line 0 Link Here
1
--- mutt_ssl_gnutls.c.orig
2
+++ mutt_ssl_gnutls.c
3
@@ -999,6 +999,7 @@
4
   unsigned int cert_list_size = 0;
5
   gnutls_certificate_status certstat;
6
   int certerr, i, preauthrc, savedcert, rc = 0;
7
+  int rcpeer;
8
 
9
   if (gnutls_auth_get_type (state) != GNUTLS_CRD_CERTIFICATE)
10
   {
11
@@ -1024,6 +1025,9 @@
12
   for (i = 0; i < cert_list_size; i++) {
13
     rc = tls_check_preauth(&cert_list[i], certstat, conn->account.host, i,
14
                            &certerr, &savedcert);
15
+    if (i == 0)
16
+      rcpeer = rc;
17
+
18
     preauthrc += rc;
19
 
20
     if (savedcert)
21
@@ -1049,7 +1053,7 @@
22
         dprint (1, (debugfile, "error trusting certificate %d: %d\n", i, rc));
23
 
24
       certstat = tls_verify_peers (state);
25
-      if (!certstat)
26
+      if (!certstat && !rcpeer)
27
         return 1;
28
     }
29
   }
(-)./files/patch-nbsp (+22 lines)
Line 0 Link Here
1
diff --git a/pager.c b/pager.c
2
--- pager.c
3
+++ pager.c
4
@@ -1187,10 +1187,17 @@
5
       last_special = special;
6
     }
7
 
8
-    if (IsWPrint (wc))
9
+    if (IsWPrint (wc) || (Charset_is_utf8 && wc == 0x00A0))
10
     {
11
       if (wc == ' ')
12
 	space = ch;
13
+      else if (Charset_is_utf8 && wc == 0x00A0)
14
+      {
15
+	/* Convert non-breaking space to normal space. The local variable
16
+	 * `space' is not set here so that the caller of this function won't
17
+	 * attempt to wrap at this character. */
18
+	wc = ' ';
19
+      }
20
       t = wcwidth (wc);
21
       if (col + t > wrap_cols)
22
 	break;

Return to bug 166659