-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > int fd = ::open( "ESLF", O_RDONLY );
In the absence of O_TEXT or O_BINARY, open() on cygwin chooses the mode of the underlying mount point but mingw always uses O_TEXT. > Here's the contents of a small biinary file "ESLF" (printed in hex bytes): > > 54 39 CA 1A 44 0x1a (ctrl-z) in a text file is Windows EOF. Read binary data in binary mode if you want all the bytes. - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEIN4g84KuGfSFAYARAhr6AJ9m1VrQ8p/0yJEnCNyjEapzDEDr3wCgmeXT AuP4dUQ+dJyiL+2dxAAUCCU= =iVtt -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/