[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-06-12 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Patch backported in r73399. Thanks!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-06-04 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

Indeed, that patch works.  I'm attaching the same patch applicable to
branches/release26-maint.

--
keywords: +patch
Added file: http://bugs.python.org/file14189/issue5645_release26-maint.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-06-04 Thread Alexandre Vassalotti

Alexandre Vassalotti  added the comment:

Can you check if the patch in issue #5645 fix the bug?

--
nosy: +alexandre.vassalotti

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-05-30 Thread Jason R. Coombs

Jason R. Coombs  added the comment:

I checked out the latest code from /branches/release26-maint and
compiled it.  Indeed the problem still exists.

Python 2.6.2+ (release26-maint:73061M, May 30 2009, 16:57:28) [MSC
v.1500 32 bit (Intel)] on win32
>>> import io
>>> io.StringIO('foo\r\nbar\r\n', newline=None).read()
u'foo\n\nbar\n\n'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-05-29 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

FWIW, WindowsXP, Py3.1b1, May 7

>>> io.StringIO('foo\r\nbar\r\n', newline=None).read()
'foo\nbar\n'

I believe there were changes to io after April 14 for May 7 release, so
this may be fixed in 2.6.3 branch already.

--
nosy: +tjreedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-05-27 Thread Jason R. Coombs

Changes by Jason R. Coombs :


--
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6127] Unexpected universal newline behavior (newline duplication) in Windows

2009-05-27 Thread Jason R. Coombs

New submission from Jason R. Coombs :

Per http://bugs.python.org/issue5265, I'm opening up a new ticket. 
Universal newline behavior works as expected under Linux but differently
under Windows.

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
>>> import io
>>> io.StringIO('foo\r\nbar\r\n', newline=None).read()
u'foo\n\nbar\n\n'

As you can see, the newlines get duplicated.

The problem doesn't seem to be with universal newline support in
general, but the StringIO implementation in particular.

PS C:\Users\jaraco\projects\formworx> python
Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit
(AMD64)] on win32
>>> open("testnl.txt", "wb").write("foo\r\nbar\r\n")
>>> open("testnl.txt", "rU").read()
'foo\nbar\n'

--
components: IO
messages: 88438
nosy: jaraco
severity: normal
status: open
title: Unexpected universal newline behavior (newline duplication) in Windows
versions: Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com