소스 검색

ENH: Handle all white spaces, fix problem on cygwin

Andy Cedilnik 22 년 전
부모
커밋
2ff2353079
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Source/cmCTest.cxx

+ 2 - 2
Source/cmCTest.cxx

@@ -66,8 +66,8 @@ static struct tm* GetNightlyTime(std::string str)
 
 static std::string CleanString(std::string str)
 {
-  std::string::size_type spos = str.find_first_not_of(" \n\t");
-  std::string::size_type epos = str.find_last_not_of(" \n\t");
+  std::string::size_type spos = str.find_first_not_of(" \n\t\r\f\v");
+  std::string::size_type epos = str.find_last_not_of(" \n\t\r\f\v");
   if ( spos == str.npos )
     {
     return std::string();