I think the correct behavior would be to use os.linesep which is "\r\n" as you state: IronPython console: IronPython 2.0 (2.0.0.0) on .NET 2.0.50727.1366 Copyright (c) Microsoft Corporation. All rights reserved. >>> import os >>> os.linesep '\r\n'
Filed as CodePlex Work Item #11016 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11016). From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thane Plummer Sent: Tuesday, June 12, 2007 7:44 AM To: users@lists.ironpython.com Subject: [IronPython] Newline oddities IPY.exe 1.1 and 2.0 both emit the newline sequence as: "\r\r\n" (hex 0x000D 0x000D 0x000A) Instead of the more standard sequence of: "\r\n" (hex 0x000D 0x000A) This behavior is not seen in -X:TabCompletion mode in IPY 1.1. I know that there are a lot of irregularities in representing the newline sequence, but this is a new one for me. Is this behavior intended? --Thane P.S. I've "fixed" the behavior so my IDE works nicely, otherwise it doesn't recognize the newline. Thane Plummer TKP Corp. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.14/845 - Release Date: 6/12/2007 6:39 AM
_______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com