* Tramp/Windows/PuTTY Copy produces corrupt files.
@ 2006-04-30 22:05 Oscar Fuentes
0 siblings, 0 replies; only message in thread
From: Oscar Fuentes @ 2006-04-30 22:05 UTC (permalink / raw)
GNU Emacs 22.0.50.1 (i386-msvc-nt5.0.2195) of 2006-04-13 on K7
> runemacs -q
Open a dired buffer on some directory of the remote machine. Press C
(copy) over a binary file (In my case, it was a Windows
executable). When asked 'Copy to' especify a local directory. The
resulting file is corrupt. To begin with, it's larger: original 853KB,
copied 1168KB. Using an hex viewer, we observe that characters with
code 0x81 are intermixed here and there. Example (all characters with
code 0x81 are not present in the original file):
0000000 4d 5a 90 00 03 00 00 00 04 00 00 00 81 ff 81 ff
0000020 00 00 81 b8 00 00 00 00 00 00 00 40 00 00 00 00
0000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81
0000100 d0 00 00 00 0e 1f 81 ba 0e 00 81 b4 09 81 cd 21
0000120 81 b8 01 4c 81 cd 21 54 68 69 73 20 70 72 6f 67
0000140 72 61 6d 20 63 61 6e 6e 6f 74 20 62 65 20 72 75
0000160 6e 20 69 6e 20 44 4f 53 20 6d 6f 64 65 2e 0d 0d
0000200 0a 24 00 00 00 00 00 00 00 81 e5 4d 4a 81 a8 81
0000220 a1 2c 24 81 fb 81 a1 2c 24 81 fb 81 a1 2c 24 81
ASCII files are corrupted too when they contain accented characterers:
<title>\201Área de clientes - Joyer\201ía Example</title>
You can see the chars with code \201 (0x81h) again.
Local system is WindowsXP SP2. Remote system is NetBSD 2.1.
*Messages* snapshot follows. Beginning of session and copy of large
binary file.
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell
tramp: Sending password
tramp: Found remote shell prompt.
tramp: Initializing remote shell
Loading time-date...done
tramp: Waiting 30s for remote `/bin/sh' to come up...
tramp: Setting up remote shell environment
tramp: Checking remote host type for `send-process-string' bug
tramp: Determining coding system
tramp: Waiting 30s for `HISTFILE=$HOME/.tramp_history; HISTSIZE=1; export HISTFILE; export HISTSIZE'
tramp: Waiting 30s for `set +o vi +o emacs'
tramp: Waiting 30s for `unset MAIL MAILCHECK MAILPATH'
tramp: Waiting 30s for `unset CDPATH'
tramp: Setting shell prompt
tramp: Remote `/bin/sh' groks tilde expansion, good
tramp: Finding command to check if file exists
tramp: Finding a suitable `ls' command
tramp: Checking remote `/usr/xpg4/bin/ls' command for `-n' option
tramp: Checking remote `/bin/ls' command for `-n' option
tramp: Testing remote command `/bin/ls' for -n...okay
tramp: Using remote command `/bin/ls' for getting directory listings
tramp: Sending the Perl `mime-encode' implementations.
tramp: Sending the Perl `mime-decode' implementations.
tramp: Checking remote encoding command `mimencode -b' for sanity
tramp: Checking remote encoding command `mmencode -b' for sanity
tramp: Checking remote encoding command `recode data..base64' for sanity
tramp: Checking remote encoding command `uuencode xxx' for sanity
tramp: Checking remote decoding command `uudecode -o /dev/stdout' for sanity
tramp: Checking remote encoding command `uuencode xxx' for sanity
tramp: Checking remote decoding command `uudecode -o -' for sanity
tramp: Checking remote encoding command `uuencode xxx' for sanity
tramp: Checking remote decoding command `uudecode -p' for sanity
tramp: Checking to see if encoding/decoding commands work on remote host...done
tramp: Sending the Perl script `tramp_file_attributes'...done.
Loading dired...done
tramp: Sending the Perl script `tramp_directory_files_and_attributes'...done.
Loading dired-aux...done
tramp: Encoding remote file /plink:oscar@pc133:/usr/pkg/share/httpd/htdocs/clientes/example/Example8553A.exe...
tramp: Decoding remote file /plink:oscar@pc133:/usr/pkg/share/httpd/htdocs/clientes/example/Example8553A.exe...
tramp: Decoding remote file /plink:oscar@pc133:/usr/pkg/share/httpd/htdocs/clientes/example/Example8553A.exe with function uudecode-decode-region...
Loading uudecode...done
Wrote c:/Temp/tramp.235230S
tramp: Decoding remote file /plink:oscar@pc133:/usr/pkg/share/httpd/htdocs/clientes/example/Example8553A.exe...done
tramp: Inserting local temp file `c:/Temp/tramp.235230S'...done
Wrote d:/Example8553A.exe
--
Oscar
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-30 22:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-30 22:05 Tramp/Windows/PuTTY Copy produces corrupt files Oscar Fuentes
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).