changeset 35149:f6220cdcf5d4

(mm-qp-or-base64): Don't base64 for the sake of a single character.
author Dave Love <fx@gnu.org>
date Mon, 08 Jan 2001 19:47:32 +0000
parents a408e1d28e3d
children ab2107f870ad
files lisp/gnus/mm-encode.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/mm-encode.el	Mon Jan 08 19:41:49 2001 +0000
+++ b/lisp/gnus/mm-encode.el	Mon Jan 08 19:47:32 2001 +0000
@@ -162,7 +162,10 @@
 	(incf n8bit)
 	(forward-char 1)
 	(skip-chars-forward "\x20-\x7f\r\n\t" limit))
-      (if (< (* 6 n8bit) (- limit (point-min)))
+      (if (or (< (* 6 n8bit) (- limit (point-min)))
+	      ;; Don't base64, say, a short line with a single
+	      ;; non-ASCII char when splitting parts by charset.
+	      (= n8bit 1))
 	  'quoted-printable
 	'base64))))