In article <[EMAIL PROTECTED]>, Chris <[EMAIL PROTECTED]> writes:
> 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? The byte sequence 0x81 0xCE looks like Emacs' internal character representation for ISO-8859-1 0xCE character. So, it seems that Emacs is doing character-DECODING conversion on reading that 1-byte file, and then it writes without encoding it back. --- Kenichi Handa [EMAIL PROTECTED] _______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
