]> git.eshelyaron.com Git - emacs.git/commitdiff
(mm-qp-or-base64): Don't base64 for the sake of a
authorDave Love <fx@gnu.org>
Mon, 8 Jan 2001 19:47:32 +0000 (19:47 +0000)
committerDave Love <fx@gnu.org>
Mon, 8 Jan 2001 19:47:32 +0000 (19:47 +0000)
single character.

lisp/gnus/mm-encode.el

index c2dee51ce51d8a447ea7e51f61685cc5d1448a3b..65fc34acfd730b10d0bdbcc546192e5454e6cf43 100644 (file)
@@ -162,7 +162,10 @@ The encoding used is returned."
        (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))))