Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/libutil/windows/file-descriptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void writeFull(HANDLE handle, std::string_view s, bool allowInterrupts)
}
}

std::string readLine(HANDLE handle, bool eofOk)
std::string readLine(HANDLE handle, bool eofOk, char terminator)
{
std::string s;
while (1) {
Expand All @@ -76,7 +76,7 @@ std::string readLine(HANDLE handle, bool eofOk)
else
throw EndOfFile("unexpected EOF reading a line");
} else {
if (ch == '\n')
if (ch == terminator)
return s;
s += ch;
}
Expand Down
Loading