changeset 75194:59eb85a37abd

* net/tramp.el (tramp-handle-file-local-copy): Set `enable-multibyte-characters' to nil. Reported by Chris Moore <christopher.ian.moore@gmail.com>.
author Michael Albinus <michael.albinus@gmx.de>
date Thu, 11 Jan 2007 20:08:04 +0000
parents 71763661a76e
children 7c64e88ce71e
files lisp/ChangeLog lisp/net/tramp.el
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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  <michael.albinus@gmx.de>
+
+	* net/tramp.el (tramp-handle-file-local-copy): Set
+	`enable-multibyte-characters' to nil.  Reported by Chris Moore
+	<christopher.ian.moore@gmail.com>.
+
 2007-01-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* diff-mode.el (diff-sanity-check-context-hunk-half)
--- 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