Thread overview
[Issue 10116] New: stdio.File.byLine repeats last line forever, readln(ref C[],R) returns bad data
May 19, 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@puremagic.com
        ReportedBy: fw..vdijk@gmail.com


--- Comment #0 from fw..vdijk@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: -------
May 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10116



--- Comment #1 from fw..vdijk@gmail.com 2013-05-19 02:12:48 PDT ---
queued a pull request #1295 with a fix

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 20, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10116


fw..vdijk@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from fw..vdijk@gmail.com 2013-05-20 00:53:41 PDT ---
PR was merged into master as 14a4b92

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------