[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TRAMP copies binary files incorrectly
From: |
Eli Zaretskii |
Subject: |
Re: TRAMP copies binary files incorrectly |
Date: |
Wed, 10 Jan 2007 23:04:43 +0200 |
> Date: Wed, 10 Jan 2007 21:04:19 +0100
> From: Chris <address@hidden>
>
> 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:address@hidden:~/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?
- TRAMP copies binary files incorrectly, Chris, 2007/01/10
- Re: TRAMP copies binary files incorrectly,
Eli Zaretskii <=
- Re: TRAMP copies binary files incorrectly, Chris Moore, 2007/01/10
- Re: TRAMP copies binary files incorrectly, Chris Moore, 2007/01/10
- Re: TRAMP copies binary files incorrectly, Stefan Monnier, 2007/01/10
- Re: TRAMP copies binary files incorrectly, Kenichi Handa, 2007/01/10
- Re: TRAMP copies binary files incorrectly, Stefan Monnier, 2007/01/11
- Re: TRAMP copies binary files incorrectly, Kenichi Handa, 2007/01/11
- Re: TRAMP copies binary files incorrectly, Chris Moore, 2007/01/11
- Re: TRAMP copies binary files incorrectly, Kenichi Handa, 2007/01/11
- Re: TRAMP copies binary files incorrectly, Chris Moore, 2007/01/11
- Re: TRAMP copies binary files incorrectly, Stefan Monnier, 2007/01/11