summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2007-01-12 00:54:56 +0000
committerKenichi Handa <handa@m17n.org>2007-01-12 00:54:56 +0000
commit9ece72949db0f54672e3a350ae31adc368e7a878 (patch)
treee3b54c873e4ef2b7d09f37d51a5f6ac9e4842c56 /lisp
parent4b59f34b5dd90d8210db06fcb466b0d7021c6b3f (diff)
downloademacs-9ece72949db0f54672e3a350ae31adc368e7a878.tar.gz
(uudecode-decode-region-internal): Make it work in a
multibyte buffer.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/uudecode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/gnus/uudecode.el b/lisp/gnus/uudecode.el
index 616348e899f..6586f715f9c 100644
--- a/lisp/gnus/uudecode.el
+++ b/lisp/gnus/uudecode.el
@@ -205,7 +205,10 @@ If FILE-NAME is non-nil, save the result to FILE-NAME."
(insert (apply 'concat (nreverse result)))))
(or (markerp end) (setq end (set-marker (make-marker) end)))
(goto-char start)
- (insert (apply 'concat (nreverse result)))
+ (if enable-multibyte-characters
+ (mapc #'(lambda (x) (insert (string-to-multibyte x)))
+ (nreverse result))
+ (insert (apply 'concat (nreverse result))))
(delete-region (point) end))))))
;;;###autoload