logic: fixed handling non-ascii characters in cdb path and in cdb filename and command

This commit is contained in:
mlangkabel
2018-02-13 16:10:10 +01:00
parent 4af9e42610
commit b2bad8ab05
15 changed files with 64 additions and 58 deletions
@@ -20,7 +20,7 @@ std::vector<FilePath> CxxFrameworkPathDetector::getPaths() const
std::vector<FilePath> frameworkPaths;
for (const std::string& path : paths)
{
if (utility::isPostfix(" (framework directory)", path))
if (utility::isPostfix<std::string>(" (framework directory)", path))
{
frameworkPaths.push_back(FilePath(utility::replace(path, " (framework directory)", "")).makeCanonical());
}
@@ -20,7 +20,7 @@ std::vector<FilePath> CxxHeaderPathDetector::getPaths() const
std::vector<FilePath> headerPaths;
for (const std::string& path : paths)
{
if (!utility::isPostfix(" (framework directory)", path))
if (!utility::isPostfix<std::string>(" (framework directory)", path))
{
headerPaths.push_back(FilePath(path).makeCanonical());
}