Author: vitek Date: Mon Apr 7 03:30:03 2008 New Revision: 645445 URL: http://svn.apache.org/viewvc?rev=645445&view=rev Log:
2008-04-07 Travis Vitek <[EMAIL PROTECTED]> * util/output.cpp (parse_output): Open file in binary mode to avoid problems with line end translation in rbinit() and rbgetc() on windows. (check_test): Remove line end sequence from scan because file opened in binary mode will not have translated line ends. (check_example): Open example output file in binary mode to be consistent with other file that is used for diff. Modified: stdcxx/trunk/util/output.cpp Modified: stdcxx/trunk/util/output.cpp URL: http://svn.apache.org/viewvc/stdcxx/trunk/util/output.cpp?rev=645445&r1=645444&r2=645445&view=diff ============================================================================== --- stdcxx/trunk/util/output.cpp (original) +++ stdcxx/trunk/util/output.cpp Mon Apr 7 03:30:03 2008 @@ -318,7 +318,7 @@ return; } - if (!rbscanf (&buf, "| INACTIVE |\n# +")) { + if (!rbscanf (&buf, "| INACTIVE |")) { status->status = ST_FORMAT; return; } @@ -483,7 +483,7 @@ } } - fref = fopen (ref_name, "r"); + fref = fopen (ref_name, "rb"); if (0 == fref) { int cache = errno; /* caching errno, as puts could alter it */ @@ -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)