This is the mail archive of the cygwin-talk mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: end of file characters


On Tue, 4 Dec 2007, Dave Korn wrote:

> On 03 December 2007 22:34, Gary Johnson wrote:
>
> > On 2007-12-03, Ren Berber wrote:
> >> Gary Johnson wrote:
> >> [snip]
> >>> Except that WordPad always writes CR-LF at the ends of lines, even
> >>> if the original file had only LF line endings.[snip]
> >>
> >> "always" is not true, WordPad distinguishes between text and DOS text as
> >> anybody can see in the file types offered when using Save as...
> >
> > I'm afraid it is true.  Have you actually tried those two "Save as
> > type" settings?  On the copy of WordPad I have on this XP machine,
> > which says it's WordPad Version 5.1, the choices are
> >
> >    Rich Text Format (RTF)
> >    Text Document
> >    Text Document - MS-DOS Format
> >    Unicode Text Document
> >
> > Opening a text file that had only LF line endings and saving it as
> > either of the two "Text Document" types will result in a file with
> > CR-LF line endings.  I have found no way to have WordPad save a file
> > with LF line endings.
> >
> > Regards,
> > Gary
>
>   I'm confused.  What does any of this have to do with Ctrl-D and Ctrl-Z?

Don't you know that files of more than one line are considered evil by
Microsoft?  That's why Outlook never wraps lines in email -- they try to
encourage you to write the whole thing on one line.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"That which is hateful to you, do not do to your neighbor.  That is the whole
Torah; the rest is commentary.  Go and study it." -- Rabbi Hillel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]