Skip to content

Conversation

WalterBright
Copy link
Member

This removes the decoding misfeature of LockingTextReader. Also, the call to ungetc() is moved to the destructor, so it only gets called once.

https://issues.dlang.org/show_bug.cgi?id=14861

The earlier attempt:
#3622

Alternate fix proposal:
#3696

while(!fr.eof)
fr.readf("%s;%s;%s;%s\n", &nom, &fam, &nam, &ot);
fr.close();
std.file.remove(deleteme);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be in scope(exit) right after creation

@WalterBright
Copy link
Member Author

This is a regression fix. It needs pulling.

@WalterBright WalterBright changed the title fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront() [REG] fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront() Oct 23, 2015
@DmitryOlshansky
Copy link
Member

This is a regression fix. It needs pulling

Open against the stable branch then?

All in all it looks good.

@DmitryOlshansky
Copy link
Member

Auto-merge toggled on

DmitryOlshansky added a commit that referenced this pull request Nov 13, 2015
[REG] fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront()
@DmitryOlshansky DmitryOlshansky merged commit 9974124 into dlang:master Nov 13, 2015
tramker pushed a commit to tramker/phobos that referenced this pull request Jan 27, 2016
[REG] fix Issue 14861 - Error in stdio.d in LockingTextReader.readFront()
Conflicts:
	std/stdio.d

Signed-off-by: Martin Krejcirik <mk@krej.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants