On Tue, Aug 07, 2007 at 10:36:16AM -0400, Shawn O. Pearce wrote:
Cygwin, like Windows' own open(2) simulation, defines an O_BINARY to pass
as a flag to open(2). I once got Git half-working on Cygwin text-mode
mounts by doing a horrible hack approximating:
#define open(name, flag, ...) \
open(name, (flag) | O_BINARY, ## __VA_ARGS__)
But it only half worked. Eventually it managed to corrupt itself again,
and worse, the test suite was completely hopeless, as all shell activity
still results in text-mode files.
-bcd
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html