summaryrefslogtreecommitdiff
path: root/lisp/gnus/qp.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2005-04-14 05:03:52 +0000
committerMiles Bader <miles@gnu.org>2005-04-14 05:03:52 +0000
commit4a4ae7ad21e9e53ed9a0006c39d69108333bc896 (patch)
tree514ec70cdfdd49c518599e15b8fdf1e85850e7d7 /lisp/gnus/qp.el
parent6f14f88410854410caf4b402cfbe0f93a80c3f86 (diff)
parent24531f226fb1150c3a52a3ebf9273d1af36062ea (diff)
downloademacs-4a4ae7ad21e9e53ed9a0006c39d69108333bc896.tar.gz
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-37
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 241-257) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 59-65) - Update from CVS - Merge from emacs--cvs-trunk--0 - (mm-string-to-multibyte): Use Gnus trunk definition.
Diffstat (limited to 'lisp/gnus/qp.el')
-rw-r--r--lisp/gnus/qp.el13
1 files changed, 4 insertions, 9 deletions
diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el
index 67ee8883f08..5cb29408935 100644
--- a/lisp/gnus/qp.el
+++ b/lisp/gnus/qp.el
@@ -100,15 +100,10 @@ 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")
- (save-excursion
- (goto-char from)
- (if (fboundp 'string-to-multibyte) ; Emacs 23
- (if (re-search-forward (string-to-multibyte "[^\x0-\x7f\x80-\xff]")
- to t)
- ;; Fixme: This is somewhat misleading.
- (error "Multibyte character in QP encoding region"))
- (if (re-search-forward (mm-string-as-multibyte "[^\0-\377]") to t)
- (error "Multibyte character in QP encoding region"))))
+ (goto-char from)
+ (if (re-search-forward (mm-string-to-multibyte "[^\x0-\x7f\x80-\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="