]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-handle-file-local-copy): Set
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 11 Jan 2007 20:08:04 +0000 (20:08 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 11 Jan 2007 20:08:04 +0000 (20:08 +0000)
`enable-multibyte-characters' to nil.  Reported by Chris Moore
<christopher.ian.moore@gmail.com>.

lisp/ChangeLog
lisp/net/tramp.el

index 39bd07ac23a321d857e226a48b7038e8983dbe56..4ed8a4c18dc3b3fe42d4d7ca3b949490578b4890 100644 (file)
@@ -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)
index 4d3ee29c4d6dc7839ac0fbb59017523696e13b74..6577a775c96b03d14a039dbc495a290500c503e8 100644 (file)
@@ -3812,10 +3812,14 @@ This will break if COMMAND prints a newline, followed by the value of
 
               ;; 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