From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: TRAMP corrupting files (it's OS X's fault) Date: Tue, 26 May 2009 21:57:23 +0200 Message-ID: <87prdvwsbg.fsf@gmx.de> References: <6ee1e6090905072244j13994d04kca17ba993a205ed0@mail.gmail.com> <6ee1e6090905181840s78904ca7h81335f07e7e3db60@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243367882 32733 80.91.229.12 (26 May 2009 19:58:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 19:58:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Daniel Colascione Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 26 21:57:59 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M92mY-0006Lc-Nv for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 21:57:55 +0200 Original-Received: from localhost ([127.0.0.1]:40119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M92mX-0003iu-Vd for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 15:57:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M92mD-0003iO-Qu for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:57:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M92m9-0003hz-C8 for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:57:33 -0400 Original-Received: from [199.232.76.173] (port=54143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M92m9-0003hv-4K for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:57:29 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:53379) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M92m8-0006hS-3x for help-gnu-emacs@gnu.org; Tue, 26 May 2009 15:57:28 -0400 Original-Received: (qmail invoked by alias); 26 May 2009 19:57:26 -0000 Original-Received: from brln-4db97343.pool.einsundeins.de (EHLO arthur.local) [77.185.115.67] by mail.gmx.net (mp055) with SMTP; 26 May 2009 21:57:26 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18oQQMOPSIoybMnG5QM1jS3CylVhEmVgYq7T1oIkV j+cNdP7KB4lUM4 In-Reply-To: (Daniel Colascione's message of "Tue, 19 May 2009 01:17:21 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.62 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64741 Archived-At: Daniel Colascione writes: > On May 18, 2009, at 9:40 PM, Will Willis wrote: >> I'm going to start using rsync to see if that helps.. I wish I were >> making this up. I've had files corrupt on me as many as 3 times in one > > I ran into the same problem. It's actually OS X's fault: OS X (at > least 10.5) doesn't give Emacs any locale environment variables. Emacs > guesses it's running under 8859-1, which has disastrous consequences > for tramp. (If you want to test it, run locale under eshell. In the > terminal, you see the expected locale output because Terminal.app > *itself* sets up the correct environment before running your shell.) Tramp cannot solve the problem, as said. But it might be worth to know, that Tramp supports the `file-precious-flag' variable. If it is set to `t', Tramp signals an error, when the remote file is corrupted during copying. Best regards, Michael.