help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: File truncated at ^Z character in windows


From: Alan Mackenzie
Subject: Re: File truncated at ^Z character in windows
Date: Sat, 14 Feb 2004 08:43:36 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

John Russell <jorussel@cisco.com> wrote on 13 Feb 2004 16:03:04 -0500:
> I just moved my all my emacs customization stuff to windows.
> Everything seems to work ok except for one thing.

> One of the files stops when it sees a ^Z character.

[ .... ]

> And that's it.  That's the end of the file.  Does anyone know what is
> special about the ^Z character that makes the file end like that?

I seem to remember from my long lost dark ages (~1986) that MS-DOS text
files were expected to end in an End-Of-File character.  Yes, you've
guessed it, ASCII 26, EOF, ^Z.  It was a pain in the posterior even then.

> Thanks for the help.

Two suggestions: (i) write the ^Z as an octal escape sequence, or
something like that;  (ii) move your customization stuff back to a free
system again.  ;-)

> John

-- 
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").



reply via email to

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