emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp/Windows/PuTTY Copy produces corrupt files.


From: Oscar Fuentes
Subject: Tramp/Windows/PuTTY Copy produces corrupt files.
Date: Mon, 01 May 2006 00:05:06 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)


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:address@hidden:/usr/pkg/share/httpd/htdocs/clientes/example/Example8553A.exe...

tramp: Decoding remote file 
/plink:address@hidden:/usr/pkg/share/httpd/htdocs/clientes/example/Example8553A.exe...

tramp: Decoding remote file 
/plink:address@hidden:/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:address@hidden:/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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]