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 | |
parent | 51524f43ab436d0d2b9e45a5e8f831fe35fbde6f (diff) | |
download | emacs-0d7c8ac455b488b47725d00aa7980805402caad4.tar.gz |
(uudecode-decode-region-internal): Make it work in a
multibyte buffer.
Diffstat (limited to 'lisp/gnus')
-rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/gnus/uudecode.el | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index a56f9ff1536..af7904fe14c 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2007-01-12 Kenichi Handa <handa@m17n.org> + + * uudecode.el (uudecode-decode-region-internal): Make it work in a + multibyte buffer. + 2007-01-07 Reiner Steib <Reiner.Steib@gmx.de> * gnus-soup.el: Add missing :group in previous change. 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 |