Bug 881 – std.stream.Stream.readLine is broken for non-seekable sources with DOS line ends

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2007-01-24T02:00:00Z
Last change time
2015-11-03T16:06:05Z
Assigned to
nobody
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-01-24T02:00:49Z
If the input isn't seekable stream.d:482 sets prevCr = true but 484-487 don't handle prevCr thus causing an additional empty line to be returned for each encountered \r\n line end.
Comment #1 by rburners — 2015-11-03T16:06:05Z
std.stream is deprecated and will be removed in 2016