This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: new package offering: zsh
- From: egor duda <deo at logos-m dot ru>
- To: "Peter A. Castro" <doctor at fruitbat dot org>
- Cc: Charles Wilson <cwilson at ece dot gatech dot edu>, Matthew Smith <matts at bluesguitar dot org>, <cygwin-apps at cygwin dot com>
- Date: Thu, 23 May 2002 11:11:41 +0400
- Subject: Re: new package offering: zsh
- Organization: deo
- References: <Pine.LNX.4.21.0205222346480.12767-100000@gremlin.fruitbat.org>
- Reply-to: egor duda <cygwin-apps at cygwin dot com>
Hi!
Thursday, 23 May, 2002 Peter A. Castro doctor@fruitbat.org wrote:
PAC> On Wed, 22 May 2002, Charles Wilson wrote:
>> No -- if zsh can handle cr+lf internally, then let it do so. Explicitly
>> open function files in binary mode -- this will override the "textmode
>> mount" which sets the default read mode.
PAC> zsh uses the open() call, not fopen(). There is no "binary" vs. "text"
PAC> mode to specify. Theoretically, open() should be opening the file in
PAC> binary mode already (ie: no text translation/interpretation), yet the
PAC> data read in clearly is being cooked under some scenarios. No, if I
PAC> understand how things are work here, I believe the carriage control
PAC> processing is being done at the filesystem level, which is below open()
PAC> and beyond my control.
It is under your control. You can use setmode () function on file descriptor.
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19