This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients amaury.forgeotdarc, christian.heimes, gvanrossum
Date 2007-11-06.00:46:20
SpamBayes Score 0.21035661
Marked as misclassified No
Message-id <1194309980.47.0.132640322593.issue1395@psf.upfronthosting.co.za>
In-reply-to
Content
Wow, thanks!
This is not just a bug on Windows -- it is a bug in the TextIOWrapper
code that is just more likely on Windows. It is easily reproduced on
Linux too:

>>> f = open("@", "wb")>>> f.write(b"a\r\n")
6
>>> f.close()
>>> f = open("@", "r")
>>> f.read(1)
'a'
>>> f.read(1)
'\n'
>>>
History
Date User Action Args
2007-11-06 00:46:20gvanrossumsetspambayes_score: 0.210357 -> 0.21035661
recipients: + gvanrossum, amaury.forgeotdarc, christian.heimes
2007-11-06 00:46:20gvanrossumsetspambayes_score: 0.210357 -> 0.210357
messageid: <1194309980.47.0.132640322593.issue1395@psf.upfronthosting.co.za>
2007-11-06 00:46:20gvanrossumlinkissue1395 messages
2007-11-06 00:46:20gvanrossumcreate