This is the mail archive of the
mailing list for the Cygwin project.
Re: mount command and text/binary mode
Tuesday, 03 April, 2001 Earnie Boyd firstname.lastname@example.org wrote:
>> >Another thing was mine program (it was waiting for stdin and sends
>> >encrypted file to output) in command line works correctly, but from
>> >tcl interpreter it isn't.
>> tcl isn't a cygwin program, unfortunately. So it doesn't adhere to
>> cygwin rules.
EB> Correct, however, you may be helped by adding the `binmode' option to
EB> the CYGWIN environment variable before starting any Cygwin processes.
it's also possible to set modes in your program on per file basis, like this:
int main (int argc, char** argv)
setmode (0, O_BINARY); /* set stdin mode to binary */
setmode (1, O_TEXT);
setmode (2, O_TEXT); /* while stdout and stderr to text */
of course, in your case, particular modes may be different.
egor. mailto:email@example.com icq 5165414 fidonet 2:5020/496.19
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple