Generate output with Unix line endings even from Mingw64 utils
This affects cygcheck and strace. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@ -13,6 +13,7 @@ details. */
|
||||
#define cygwin_internal cygwin_internal_dontuse
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <io.h>
|
||||
#include <getopt.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
@ -1054,6 +1055,9 @@ main2 (int argc, char **argv)
|
||||
argc++;
|
||||
}
|
||||
|
||||
_setmode (1, _O_BINARY);
|
||||
_setmode (2, _O_BINARY);
|
||||
|
||||
if (!(pgm = strrchr (*argv, '\\')) && !(pgm = strrchr (*argv, '/')))
|
||||
pgm = *argv;
|
||||
else
|
||||
|
Reference in New Issue
Block a user