--- /usr/src/findutils-4.5.5-1/src/findutils-4.5.5/xargs/xargs.c.orig 2009-07-05 18:33:13.000000000 -0400 +++ /usr/src/findutils-4.5.5-1/src/findutils-4.5.5/xargs/xargs.c 2010-04-08 21:42:40.274800800 -0400 @@ -782,6 +782,11 @@ if (eof) return -1; + #ifdef __CYGWIN__ + /* Force the "text mode" that translates between the CR/NL line endings in + * files of text mounts and NL endings in C file buffers. */ + input_stream = freopen( NULL, "rt", input_stream ); + #endif while (1) { prevc = c; @@ -947,6 +952,11 @@ if (eof) return -1; + #ifdef __CYGWIN__ + /* Force the "binary mode" that disables translation between the CR/NL line + * endings in files of text mounts and NL endings in C file buffers. */ + input_stream = freopen( NULL, "rb", input_stream ); + #endif while (1) { int c = getc (input_stream);