> Date: Wed, 10 Jan 2007 21:04:19 +0100 > From: Chris <[EMAIL PROTECTED]> > > I have a 1 byte file on a remote server. If I use 'scp' to copy the > file to my local machine, it copies correctly, but if I use: > $ emacs -Q > (copy-file "/ssh:[EMAIL PROTECTED]:~/file" "/tmp/file") C-j > to copy it, then the resulting local file is 2 bytes long. > > I used hexl-mode to compare the two files: > > 1 byte correct version: > 00000000: ce . > > 2 byte broken version: > 00000000: 81ce .. > > Could it be that Emacs is doing some kind of character-encoding > conversion?
Tramp does some complicated encode/decode stuff to send the file on the wire (since ssh is just a filter, so binary stuff cannot be easily sent verbatim). However, I just tried this, and I cannot reproduce the problem with the current CVS: I get an exact replica of the original file on my local machine. Do _all_ files from that machine copy incorrectly? Or just some? Also, could you show the contents of the *Messages* buffer after the copy operation finishes? _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
