소스 검색

BUG: On windows there are problems when opening file as ascii

Andy Cedilnik 21 년 전
부모
커밋
afb83a7d44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/CTest/cmCTestSubmitHandler.cxx

+ 1 - 1
Source/CTest/cmCTestSubmitHandler.cxx

@@ -625,7 +625,7 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(const cmStdString& localprefix,
       }
 
     size_t fileSize = st.st_size;
-    FILE* fp = fopen(local_file.c_str(), "r");
+    FILE* fp = fopen(local_file.c_str(), "rb");
     if ( !fp )
       {
       return false;