[issue1744752] Newline skipped in "for line in file" for huge file

2010-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I think there's actually a bug in the MSVCRT read() function, which was not too hard to spot (see explanation below). In short, a CRLF file opened in text mode may skip a newline after 4GB. I'm re-closing the issue as "won't fix". There's really nothin

[issue1744752] Newline skipped in "for line in file" for huge file

2010-09-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: We need a reproducible test before being able to go forward with this. At the very least, that would help isolate whether this is a build specific C library issue. -- nosy: +rhettinger resolution: -> invalid status: open -> closed __

[issue1744752] Newline skipped in "for line in file" for huge file

2010-09-17 Thread Mark Lawrence
Mark Lawrence added the comment: @Brian/Tim any thoughts on this? -- nosy: +BreamoreBoy, brian.curtin, tim.golden title: Newline skipped in "for line in file" -> Newline skipped in "for line in file" for huge file versions: +Python 3.1, Python 3.2 -Python 2.6 _

[issue1744752] Newline skipped in "for line in file"

2009-04-08 Thread Matthew Barnett
Matthew Barnett added the comment: What do you mean "towards the end of the file"? What are the offsets of the two lines? (I'm thinking it might be something to do with the \r\n lying across a boundary, such as the 4GB boundary.) -- nosy: +mrabarnett ___

[issue1744752] Newline skipped in "for line in file"

2009-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: The only difference between "r" and "rb" (in Python 2.x) is that under Windows, "r" mode converts "\r\n" line endings into "\n". But it's the Windows C stdlib which does that, not Python. So maybe a bug in Windows itself? -- ___

[issue1744752] Newline skipped in "for line in file"

2009-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1744752] Newline skipped in "for line in file"

2009-04-06 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Windows nosy: +benjamin.peterson, pitrou stage: -> test needed type: -> behavior versions: +Python 2.6, Python 3.1 -Python 2.5 ___ Python tracker __