delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/03/17:34:19

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 3 Dec 2007 14:33:38 -0800
From: Gary Johnson <garyjohn AT spk DOT agilent DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: end of file characters
Message-ID: <20071203223338.GA29932@suncomp1.spk.agilent.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <729528 DOT 66694 DOT qm AT web36807 DOT mail DOT mud DOT yahoo DOT com> <006f01c8350f$fbc40bd0$f34c2370$@net.au> <20071203170117 DOT GA27870 AT suncomp1 DOT spk DOT agilent DOT com> <fj1snc$d19$1 AT ger DOT gmane DOT org>
MIME-Version: 1.0
In-Reply-To: <fj1snc$d19$1@ger.gmane.org>
User-Agent: Mutt/1.5.17 (2007-11-01)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019