You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tracked down a bug in the Unison file synchronizer, which was using
Unix.openfile to copy a binary file. I could not fix the bug easily because
Unix.open_flag is missing O_BINARY. There is a workaround (use the standard IO)
but I wonder why is O_BINARY missing. It would be useful in cygwin, and can be
ignored otherwise.
Thanks,
George.
The text was updated successfully, but these errors were encountered:
Cygwin is the only system where BINARY and TEXT mode need to be applied at the
Unix level (the native windows ports need them only at the channel level). I'll
leave this as a feature wish for the time being, but I don't like the idea of
polluting the API just for Cygwin. XL, 2004-02-02
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
At some point in the 00's, Cygwin switched the default mode for mount points to binary, meaning that open() opens files in binary mode by default. This is exactly the behavior we want for Unix.openfile (no translation of file contents ever), so we are good.
Original bug ID: 3265
Reporter: administrator
Status: acknowledged
Resolution: open
Priority: normal
Severity: feature
Category: otherlibs
Bug description
Full_Name: George Necula
Version: 3.08.1
OS: cygwin
Submission from: raw.cs.berkeley.edu (128.32.153.230)
Hi,
I tracked down a bug in the Unison file synchronizer, which was using
Unix.openfile to copy a binary file. I could not fix the bug easily because
Unix.open_flag is missing O_BINARY. There is a workaround (use the standard IO)
but I wonder why is O_BINARY missing. It would be useful in cygwin, and can be
ignored otherwise.
Thanks,
George.
The text was updated successfully, but these errors were encountered: