diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-03-12 20:53:10 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-03-12 20:53:10 +0000 |
commit | 058f4002400d8808c5b9f7d99e5c9fb5fdc01697 (patch) | |
tree | 962b6087d9bb97bc579a402b18d3e85a1278da18 /lisp/mail/uudecode.el | |
parent | eb21f2ff519ebd89e37f39652ae84328cc6c78d2 (diff) | |
download | emacs-058f4002400d8808c5b9f7d99e5c9fb5fdc01697.tar.gz |
(uudecode-decode-region-internal): Use set-buffer-multibyte rather than
setting default-enable-multibyte-characters.
Diffstat (limited to 'lisp/mail/uudecode.el')
-rw-r--r-- | lisp/mail/uudecode.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/mail/uudecode.el b/lisp/mail/uudecode.el index 574ad0e785c..ff238fae58a 100644 --- a/lisp/mail/uudecode.el +++ b/lisp/mail/uudecode.el @@ -217,14 +217,14 @@ If FILE-NAME is non-nil, save the result to FILE-NAME." result)))) (skip-chars-forward non-data-chars end)) (if file-name - (let (default-enable-multibyte-characters) - (with-temp-file file-name - (insert (apply 'concat (nreverse result))))) + (with-temp-file file-name + (set-buffer-multibyte nil) + (insert (apply 'concat (nreverse result)))) (or (markerp end) (setq end (set-marker (make-marker) end))) (goto-char start) (if enable-multibyte-characters - (mapc #'(lambda (x) (insert (uudecode-string-to-multibyte x))) - (nreverse result)) + (dolist (x (nreverse result)) + (insert (uudecode-string-to-multibyte x))) (insert (apply 'concat (nreverse result)))) (delete-region (point) end)))))) @@ -238,5 +238,5 @@ If FILE-NAME is non-nil, save the result to FILE-NAME." (provide 'uudecode) -;;; arch-tag: e1f09ed5-62b4-4677-9f13-4e81c4fe8ce3 +;; arch-tag: e1f09ed5-62b4-4677-9f13-4e81c4fe8ce3 ;;; uudecode.el ends here |