all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: File truncated at ^Z character in windows
Date: Sat, 14 Feb 2004 13:52:29 +0200	[thread overview]
Message-ID: <6654-Sat14Feb2004135229+0200-eliz@elta.co.il> (raw)
In-Reply-To: <m3smhe66bb.fsf@cisco.com> (message from John Russell on 13 Feb 2004 16:03:04 -0500)

> From: John Russell <jorussel@cisco.com>
> Newsgroups: gnu.emacs.help
> Date: 13 Feb 2004 16:03:04 -0500
> 
> Does anyone know what is special about the ^Z character that makes
> the file end like that?

The ^Z character is a kind of ``software end-of-file'' on DOS and
Windows systems.  This is a legacy from the old CP/M family of
operating systems, which was a predecessor of DOS and Windows.  Many
text-oriented programs on Windows, like the notorious Notepad, still
keep this back compatibility.  Text-mode I/O functions in standard
libraries available on Windows signal EOF when they see ^Z, and
console I/O does the same when you write text in cooked mode to the
shell window.

To avoid this truncation, don't use text-mode I/O when you copy files
from Unix to Windows.  For example, if you use FTP to copy files,
issue the `binary' command before the `get' command.  When using other
methods of copying files, prefer good ports of GNU software that will
DTRT and copy the entire file regardless.  For example, instead of
making a zip file, make a tar file, then untar it on Windows using a
port of GNU Tar.

If the above doesn't help, please describe how you copied the
offending file(s), and you will probably get specific advice for that
situation.

  parent reply	other threads:[~2004-02-14 11:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-13 21:03 File truncated at ^Z character in windows John Russell
2004-02-14  8:43 ` Alan Mackenzie
2004-02-17 19:17   ` John Russell
2004-02-14 11:52 ` Eli Zaretskii [this message]
     [not found] ` <mailman.2383.1076759638.928.help-gnu-emacs@gnu.org>
2004-02-17 19:15   ` John Russell
2004-02-17 20:13     ` Eli Zaretskii
2004-02-18  8:26       ` Ehud Karni
2004-02-18 10:51         ` Eli Zaretskii
     [not found]     ` <mailman.2587.1077048825.928.help-gnu-emacs@gnu.org>
2004-02-18 10:14       ` Michael M Mason
2004-02-18 10:36         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6654-Sat14Feb2004135229+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.