mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Let's be compatible with the config files open in binary mode.
This commit is contained in:
parent
79dfd2fb33
commit
9859341694
@ -76,7 +76,7 @@ void ConfigFile::stripLeadingWhiteSpace(string& s)
|
||||
return;
|
||||
}
|
||||
|
||||
const string::size_type startPos = s.find_first_not_of(" \t");
|
||||
const string::size_type startPos = s.find_first_not_of(" \t\r");
|
||||
if (startPos == string::npos)
|
||||
{
|
||||
s.erase(); // nothing but air
|
||||
@ -99,7 +99,7 @@ void ConfigFile::stripTrailingWhiteSpace(string& s)
|
||||
return;
|
||||
}
|
||||
|
||||
string::size_type endPos = s.find_last_not_of(" \t");
|
||||
string::size_type endPos = s.find_last_not_of(" \t\r");
|
||||
if (endPos != string::npos)
|
||||
{
|
||||
// Note that endPos is the index to the last non-ws char
|
||||
|
Loading…
Reference in New Issue
Block a user