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:
parent
a18b1462cf
commit
d9c622ae04
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue