From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: File truncated at ^Z character in windows Date: 18 Feb 2004 12:51:50 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1438-Tue17Feb2004221318+0200-eliz@elta.co.il> <200402180826.i1I8Q6kP008705@beta.mvs.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1077101580 29723 80.91.224.253 (18 Feb 2004 10:53:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2004 10:53:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 11:52:53 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AtPK1-0007Ce-00 for ; Wed, 18 Feb 2004 11:52:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtPJc-00023J-Rx for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Feb 2004 05:52:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AtPI9-0001aV-3J for help-gnu-emacs@gnu.org; Wed, 18 Feb 2004 05:50:57 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AtPHR-0000LA-5V for help-gnu-emacs@gnu.org; Wed, 18 Feb 2004 05:50:45 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AtPHQ-0000Hs-M3 for help-gnu-emacs@gnu.org; Wed, 18 Feb 2004 05:50:12 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <200402180826.i1I8Q6kP008705@beta.mvs.co.il> (ehud@unix.mvs.co.il) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16966 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16966 > Date: Wed, 18 Feb 2004 10:26:06 +0200 > From: "Ehud Karni" > > > > So it sounds like samba did this. > > I don't think it is a samba problem. We employ a samba (on GNU/Linux) > with a share of over 50GB and about 200 M$Windows users. It is working > over 3 years and no one reported any such problem. I find it hard to believe, as you do, but given the information presented in this thread, that was the only conclusion I could draw. Perhaps we were not told all the facts. > The only way it can happen is if the copy was a TEXT copy (i.e. not > binary). The M$Windows `copy' has switches that control its mode: > /A Indicates an ASCII text file. > /B Indicates a binary file. True, but the default on modern versions of Windows is binary. > > Anyway, the advice to move the files in an archive, like a tar.gz > > file, is still valid, I think. > > I think that is because the M$Windows `copy' select the mode (text/ > binary) according to the file extension if not specified explicitly. I just tried COPY without any switches with both a .pdf file and a .txt file, and got binary copies in both cases. That was on Windows XP with cmd.exe as the shell (this is important since COPY is a built-in shell command, so it could behave differently in different shells).