[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've filed the Windows issue as http://bugs.python.org/issue6127 -- ___ Python tracker ___ ___ Pyth

[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-12 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > Should this issue go under a new ticket? Yes, it would be preferable as the issue is probably not specific to io.StringIO. Also, make sure that you include the result of this test-case: open("testnl.txt", "wb").write("foo\r\nbar\r\n") open("testnl.txt"

[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: Perhaps I was wrong about 2.7. However, I'm using stock builds of Python 2.6.2 for Windows, both 32- and 64-bit, and I get the undesirable behavior. Apparently the problem is platform-specific. Should this issue go under a new ticket? -- ___

[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-11 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: The bug shouldn't affect 2.6 and 2.7 unless you backported the now obsolete _stringio module from 3.0. I tested 2.6 and 2.7 and as expected I didn't see the bug: Python 2.6.2+ (release26-maint:72576, May 11 2009, 23:16:48) [GCC 4.3.3] on linux2 Type "he

[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-05-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: Although this was fixed for 3.1, it appears not to be fixed for Python 2.6 or 2.7. PS C:\Users\jaraco> python Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more inform

[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-03-04 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is fixed by the io-c branch merge. (r70152) -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker

[issue5265] StringIO can duplicate newlines in universal newlines mode

2009-02-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : This one is a bit strange: >>> f = io.StringIO("a\r\nb\r\n", newline=None) >>> f.read() 'a\nb\n' >>> f = io.StringIO("a\r\nb\r\n", newline=None) >>> f.read(6) 'a\nb\n' >>> f = io.StringIO("a\r\nb\r\n", newline=None) >>> f.read(5) 'a\n\nb\n' -- messag