# HG changeset patch # User Michael Albinus # Date 1168546084 0 # Node ID 59eb85a37abd4518460d730d25bc6af2bda5d31f # Parent 71763661a76ec9d8818e45479b3fb4319121000b * net/tramp.el (tramp-handle-file-local-copy): Set `enable-multibyte-characters' to nil. Reported by Chris Moore . diff -r 71763661a76e -r 59eb85a37abd lisp/ChangeLog --- a/lisp/ChangeLog Thu Jan 11 19:22:04 2007 +0000 +++ b/lisp/ChangeLog Thu Jan 11 20:08:04 2007 +0000 @@ -1,3 +1,9 @@ +2007-01-11 Michael Albinus + + * net/tramp.el (tramp-handle-file-local-copy): Set + `enable-multibyte-characters' to nil. Reported by Chris Moore + . + 2007-01-11 Stefan Monnier * diff-mode.el (diff-sanity-check-context-hunk-half) diff -r 71763661a76e -r 59eb85a37abd lisp/net/tramp.el --- a/lisp/net/tramp.el Thu Jan 11 19:22:04 2007 +0000 +++ b/lisp/net/tramp.el Thu Jan 11 20:08:04 2007 +0000 @@ -3812,10 +3812,14 @@ ;; Here is where loc-enc and loc-dec used to be let-bound. (if (and (symbolp loc-dec) (fboundp loc-dec)) - ;; If local decoding is a function, we call it. + ;; If local decoding is a function, we call it. We + ;; must disable multibyte, because + ;; `uudecode-decode-region' doesn't handle it + ;; correctly. (let ((tmpbuf (get-buffer-create " *tramp tmp*"))) (set-buffer tmpbuf) (erase-buffer) + (set-buffer-multibyte nil) (insert-buffer-substring tramp-buf) (tramp-message-for-buffer multi-method method user host