[Python-Dev] CRLF line endings

martin at v.loewis.de martin at v.loewis.de
Thu May 3 23:00:39 CEST 2012


Zitat von Chris Angelico <rosuav at gmail.com>:

> On Thu, May 3, 2012 at 10:50 PM, Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:
>> Although these are text files, the CRLF line endings are needed because
>> otherwise, the files won't be presented correctly on Windows, e.g.  
>> in Notepad.
>
> Not all Windows editors choke on \n line endings; when I'm on Windows
> and run into one, I open it in Wordpad (or, if I have one, a dedicated
> programming editor like SciTE or the Open Watcom editor). AFAIK only
> Notepad (of standard Windows utilities) has trouble.
>
> Not sure if that makes a difference or not.

I think that .bat files strictly *have* to have CRLF line endings. Not sure
about PowerShell, though.

In any case, having CRLF for these files sounds good to me.

Regards,
Martin




More information about the Python-Dev mailing list