Permalink
Browse files

fix bugzilla 3752

  • Loading branch information...
andralex committed Jun 6, 2011
1 parent bfdb663 commit 7f154259fa8ffa7ab722d641e15bb68aeb6afac6
Showing with 7 additions and 5 deletions.
  1. +5 −2 changelog.dd
  2. +2 −3 std/stdio.d
View
@@ -1,10 +1,13 @@
$(VERSION 054, ddd mm, 2011, =================================================,
$(WHATSNEW
$(LI Your news here)
$(LI Your news here)
)
$(LIBBUGSFIXED
$(LI $(BUGZILLA 3457): rdmd fails silently in a particular setup where the compiler is not the expected)
$(LI $(BUGZILLA 3479): writef/writefln: positional precision not working)
)
$(LI $(BUGZILLA 3564): Rdmd failing to link external C libraries)
$(LI $(BUGZILLA 3752): File.byLine fetches lines in a confusing manner)
)
)
View
@@ -904,9 +904,6 @@ Range that reads one line at a time. */
file = f;
this.terminator = terminator;
keepTerminator = kt;
popFront; // prime the range
// @@@BUG@@@ line below should not exist
//if (file.p) ++file.p.refs;
}
/// Range primitive implementations.
@@ -918,6 +915,7 @@ Range that reads one line at a time. */
/// Ditto
Char[] front()
{
if (line is null) popFront();
return line;
}
@@ -926,6 +924,7 @@ Range that reads one line at a time. */
{
enforce(file.isOpen);
file.readln(line, terminator);
assert(line !is null, "Bug in File.readln");
if (!line.length)
file.detach;
else if (keepTerminator == KeepTerminator.no

0 comments on commit 7f15425

Please sign in to comment.