stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r644314 - /stdcxx/trunk/util/output.cpp
Date Thu, 03 Apr 2008 13:47:54 GMT
Author: faridz
Date: Thu Apr  3 06:47:54 2008
New Revision: 644314

URL: http://svn.apache.org/viewvc?rev=644314&view=rev
Log:
2008-04-03  Farid Zaripov  <farid_zaripov@epam.com>

	* util/output.cpp (parse_output): Open file in binary mode
	(in text mode on Windows fread() returns value less than
	actually bytes read due to replacing "\r\n" to "\n").

Modified:
    stdcxx/trunk/util/output.cpp

Modified: stdcxx/trunk/util/output.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/util/output.cpp?rev=644314&r1=644313&r2=644314&view=diff
==============================================================================
--- stdcxx/trunk/util/output.cpp (original)
+++ stdcxx/trunk/util/output.cpp Thu Apr  3 06:47:54 2008
@@ -548,7 +548,7 @@
     assert (0 != options->argv [0]);
     out_name = output_name (options->argv [0]);
 
-    data = fopen (out_name, "r");
+    data = fopen (out_name, "rb");
 
     if (0 == data) {
         if (ENOENT != errno)



Mime
View raw message