Преглед изворни кода

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

Andy Cedilnik пре 20 година
родитељ
комит
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;