From: Dave Love Date: Mon, 24 Jun 2002 19:06:00 +0000 (+0000) Subject: (quoted-printable-encode-region): Avoid X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~630 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1bf026ea492cb57597c0dd0ddea228001a7bdff;p=emacs.git (quoted-printable-encode-region): Avoid find-charset-region. --- diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el index e7bff13b918..0760457b3e9 100644 --- a/lisp/gnus/qp.el +++ b/lisp/gnus/qp.el @@ -92,13 +92,9 @@ You should probably avoid non-ASCII characters in this arg. If `mm-use-ultra-safe-encoding' is set, fold lines unconditionally and encode lines starting with \"From\"." (interactive "r") - ;; Fixme: what should this do in XEmacs/Mule? - (if (fboundp 'find-charset-region) ; else XEmacs, non-Mule - (if (delq 'unknown ; Emacs 20 unibyte - (delq 'eight-bit-graphic ; Emacs 21 - (delq 'eight-bit-control - (delq 'ascii (find-charset-region from to))))) - (error "Multibyte character in QP encoding region"))) + (save-excursion + (if (re-search-forward "[^\x0-\xff]" to t) + (error "Multibyte character in QP encoding region"))) (unless class ;; Avoid using 8bit characters. = is \075. ;; Equivalent to "^\000-\007\013\015-\037\200-\377="