diff options
author | Kenichi Handa <handa@m17n.org> | 2007-01-12 00:55:34 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2007-01-12 00:55:34 +0000 |
commit | 0d7c8ac455b488b47725d00aa7980805402caad4 (patch) | |
tree | 7a1ecab561f018768ad4b2d207634968b6af5bb8 /lisp/gnus/uudecode.el | |
parent | 51524f43ab436d0d2b9e45a5e8f831fe35fbde6f (diff) | |
download | emacs-0d7c8ac455b488b47725d00aa7980805402caad4.tar.gz emacs-0d7c8ac455b488b47725d00aa7980805402caad4.tar.bz2 emacs-0d7c8ac455b488b47725d00aa7980805402caad4.zip |
(uudecode-decode-region-internal): Make it work in a
multibyte buffer.
Diffstat (limited to 'lisp/gnus/uudecode.el')
-rw-r--r-- | lisp/gnus/uudecode.el | 5 |
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 |