CConfig now accepts and discards \r at the end of a line. This

allows the unix server to read configuration files created on
microsoft windows platforms.
This commit is contained in:
crs 2002-10-15 22:17:41 +00:00
parent a18b1462cf
commit d9c622ae04

View File

@ -424,7 +424,7 @@ CConfig::readLine(std::istream& s, CString& line)
if (i != CString::npos) {
line.erase(i);
}
i = line.find_last_not_of(" \t");
i = line.find_last_not_of(" \r\t");
if (i != CString::npos) {
line.erase(i + 1);
}