Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003265OCamlotherlibspublic2004-11-10 18:492016-12-07 14:12
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003265: Unix.open_flag is missing O_BINARY and O_TEXT
DescriptionFull_Name: George Necula
Version: 3.08.1
OS: cygwin
Submission from: (


 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.


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
administrator (administrator)
2005-02-02 16:55

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

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2016-12-07 14:12 shinwell Category OCaml general => OCaml otherlibs
2016-12-07 14:12 shinwell Description Updated View Revisions
2017-02-23 16:42 doligez Category OCaml otherlibs => otherlibs

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker