mount command and text/binary mode
Christopher Faylor
cgf@redhat.com
Tue Apr 3 07:27:00 GMT 2001
On Tue, Apr 03, 2001 at 04:41:50PM +0400, egor duda wrote:
>Hi!
>
>Tuesday, 03 April, 2001 Earnie Boyd earnie_boyd@yahoo.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:
>
>#include <io.h>
>#include <sys/fcntl.h>
>...
>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
with tcl.
cgf
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list