From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oscar Fuentes Newsgroups: gmane.emacs.devel Subject: Tramp/Windows/PuTTY Copy produces corrupt files. Date: Mon, 01 May 2006 00:05:06 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1146434739 13945 80.91.229.2 (30 Apr 2006 22:05:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 22:05:39 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 00:05:34 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FaK2m-0000D7-Jg for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 00:05:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaK2m-0007m5-4k for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 18:05:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaK2b-0007lo-QE for emacs-devel@gnu.org; Sun, 30 Apr 2006 18:05:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaK2b-0007lO-0H for emacs-devel@gnu.org; Sun, 30 Apr 2006 18:05:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaK2a-0007lL-Tc for emacs-devel@gnu.org; Sun, 30 Apr 2006 18:05:20 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FaK6G-0004WV-F2 for emacs-devel@gnu.org; Sun, 30 Apr 2006 18:09:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FaK2U-0000BY-3W for emacs-devel@gnu.org; Mon, 01 May 2006 00:05:14 +0200 Original-Received: from 236.red-83-61-144.dynamicip.rima-tde.net ([83.61.144.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 May 2006 00:05:14 +0200 Original-Received: from oscarfv by 236.red-83-61-144.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 May 2006 00:05:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 84 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 236.red-83-61-144.dynamicip.rima-tde.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:Jl091kh343yhNwGJlBUosR7VC1E= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53698 Archived-At: 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: \201Área de clientes - Joyer\201ía Example 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