Skip to content
Snippets Groups Projects
Commit 4d773f16 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8280 Fix Windows EOL in test output

parent acb2635a
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,9 @@
#include <ac/stdlib.h>
#include <ac/string.h>
#include <ac/unistd.h>
#ifdef _WIN32
#include <fcntl.h>
#endif
#define DEFAULT_SPECS "ndb=a,null=n"
......@@ -233,6 +236,9 @@ main( int argc, char **argv )
backend = "";
}
#ifdef _WIN32
_setmode(1, _O_BINARY); /* don't convert \n to \r\n on stdout */
#endif
flags = get_flags( backend, specs );
filter_stdin( flags ? flags : get_flags( backend, DEFAULT_SPECS ));
if ( fclose( stdout ) == EOF ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment