This is the mail archive of the
mailing list for the Cygwin project.
Re: mount command and text/binary mode
On Tue, Apr 03, 2001 at 04:41:50PM +0400, egor duda wrote:
>Tuesday, 03 April, 2001 Earnie Boyd email@example.com 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.
I don't see how either of these suggestions is going to help. TCL IS NOT
A CYGWIN PROGRAM. Setting the CYGWIN environment variable is not going
to affect a non-Cygwin program. A C program snippet is not going to help
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple