This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Consistent mode of file-opens
- To: "Earnie Boyd" <earnie_boyd at hotmail dot com>, kkont at estia dot iit dot nrcps dot ariadne-t dot gr
- Subject: Re: Consistent mode of file-opens
- From: Larry Hall <lhall at rfk dot com>
- Date: Fri, 10 Oct 1997 09:08:02 -0400
- Cc: gnu-win32 at cygnus dot com
At 06:30 AM 10/9/97 PDT, Earnie Boyd wrote:
>
>
>>From: kkont@estia.iit.nrcps.ariadne-t.gr (Kimon Kontovassilis)
>>Subject: Consistent mode of file-opens
>>To: gnu-win32@cygnus.com
>>Date: Wed, 8 Oct 1997 18:31:19 +0200 (EET)
>>Cc: kkont@estia.iit.nrcps.ariadne-t.gr (Kimon Kontovassilis)
>>
>>Hello, fellows!
>>
>---snip---
>>
>>Consider now a system setup where all mount points have been flagged as
>>binary. (As previous discussions on this list have fully explained,
>such a
>>setting is virtually necessary, if binary-file-oriented applications
>are to
>>behave properly without being individually modified.)
>>The problem is that stdin, stdout and stderr are still opened in text
>mode.
>>This breaks redirection and pipe operations dealing with binary data.
>>Things like
>>
>> gunzip -c file.tar.gz | tar xvf -
>
>You must be executing from the MSDosshell. I've done this sort of
>operation many times both on WNT3.51 and W95 within BASH without any
>problems.
>
Nope, Kimon is right on this count. Pipes, stdin, stdout, and stderr are
"text" mode in gnu-win32 regardless of the mounting option. A code change
is necessary to modify this. I forget exactly where this needs to be done
but its either in bash or winsup code....
Larry
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".