# HG changeset patch # User Dave Love # Date 978983252 0 # Node ID f6220cdcf5d497d827bc5002b5bcaf8eb37a4d50 # Parent a408e1d28e3d4f141e310a247ccfa63730fda0e5 (mm-qp-or-base64): Don't base64 for the sake of a single character. diff -r a408e1d28e3d -r f6220cdcf5d4 lisp/gnus/mm-encode.el --- 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))))