Re: [Python-Dev] CRLF line endings

2012-05-03 Thread Nick Coghlan
On Fri, May 4, 2012 at 7:00 AM, wrote: > In any case, having CRLF for these files sounds good to me. Right. While Windows has been getting much better at coping with LF only line endings over the years, being able to explicitly flag files for CRLF endings is the entire reason we held out for the

Re: [Python-Dev] CRLF line endings

2012-05-03 Thread Glenn Linderman
On 5/3/2012 2:00 PM, mar...@v.loewis.de wrote: I think that .bat files strictly *have* to have CRLF line endings. Nope. Both .bat and .cmd work fine with LF only in Win7 (and IIRC, in XP as well, but I just tested Win7) ___ Python-Dev mailing list P

Re: [Python-Dev] CRLF line endings

2012-05-03 Thread martin
Zitat von Chris Angelico : On Thu, May 3, 2012 at 10:50 PM, Vinay Sajip 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

Re: [Python-Dev] CRLF line endings

2012-05-03 Thread Chris Angelico
On Fri, May 4, 2012 at 1:28 AM, Vinay Sajip wrote: > It's only really an issue for new / inexperienced users, I agree. Since these > files are installed only on Windows systems, there's no reason for them not to > have the native line endings. Then sure, doesn't make a lot of difference that it's

Re: [Python-Dev] CRLF line endings

2012-05-03 Thread Vinay Sajip
Chris Angelico gmail.com> writes: > 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 t

Re: [Python-Dev] CRLF line endings

2012-05-03 Thread Chris Angelico
On Thu, May 3, 2012 at 10:50 PM, Vinay Sajip 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

[Python-Dev] CRLF line endings

2012-05-03 Thread Vinay Sajip
To facilitate review of the PEP 405 reference implementation, I want to update my sandbox repository on hg.python.org with the relevant changes, so I can create a patch for Rietveld. I've added some files with CRLF line endings: Lib/venv/scripts/nt/Activate.ps1 Lib/venv/scripts/nt/Dectivate.ps1 L

Re: [Python-Dev] CRLF line endings

2011-03-25 Thread Antoine Pitrou
On Fri, 25 Mar 2011 09:12:53 -0400 "R. David Murray" wrote: > On Fri, 25 Mar 2011 21:12:19 +1000, Nick Coghlan wrote: > > Don't disable the commit hook, update .hgeol to flag that file as > > requiring CRLF line endings. > > Note however that we discovered that the server side hook looks at the

Re: [Python-Dev] CRLF line endings

2011-03-25 Thread Nick Coghlan
On Fri, Mar 25, 2011 at 11:12 PM, R. David Murray wrote: > On Fri, 25 Mar 2011 21:12:19 +1000, Nick Coghlan wrote: >> Don't disable the commit hook, update .hgeol to flag that file as >> requiring CRLF line endings. > > Note however that we discovered that the server side hook looks at the > .hge

Re: [Python-Dev] CRLF line endings

2011-03-25 Thread R. David Murray
On Fri, 25 Mar 2011 21:12:19 +1000, Nick Coghlan wrote: > Don't disable the commit hook, update .hgeol to flag that file as > requiring CRLF line endings. Note however that we discovered that the server side hook looks at the .hgeol file in the *server's checkout*. I don't know if Georg or Antoi

Re: [Python-Dev] CRLF line endings

2011-03-25 Thread Stefan Krah
Nick Coghlan wrote: > > However, dnloop.patch is correct and must have CRLF line endings. How > > can I disable the commit hook? > > Don't disable the commit hook, update .hgeol to flag that file as > requiring CRLF line endings. Thanks, that works well. Stefan Krah _

Re: [Python-Dev] CRLF line endings

2011-03-25 Thread Nick Coghlan
On Fri, Mar 25, 2011 at 7:36 PM, Stefan Krah wrote: > Hi, > > A commit hook prevented pushing changes to the cdecimal repository: > > pushing to ssh://h...@hg.python.org/features/cdecimal > searching for changes > 8 changesets found > remote: adding changesets > remote: adding manifests > remote:

[Python-Dev] CRLF line endings

2011-03-25 Thread Stefan Krah
Hi, A commit hook prevented pushing changes to the cdecimal repository: pushing to ssh://h...@hg.python.org/features/cdecimal searching for changes 8 changesets found remote: adding changesets remote: adding manifests remote: adding file changes remote: added 8 changesets with 117 changes to 117