[Issue 10116] New: stdio.File.byLine repeats last line forever, readln(ref C[], R) returns bad data
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 19 02:06:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10116
Summary: stdio.File.byLine repeats last line forever,
readln(ref C[],R) returns bad data
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: fw..vdijk at gmail.com
--- Comment #0 from fw..vdijk at gmail.com 2013-05-19 02:06:01 PDT ---
byLine expects readln to return with an empty buffer on end-of-stream, which
readln does not do for wchar and dchar, so byLine!(x,wchar) and
byLine!(x,dchar) repeat forever. Also, the readln variant that takes a
terminator range returns incorrect concatenations of lines because of the same
issue.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list