www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/05/24/21:04:15

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Fri, 24 May 2002 18:02:35 -0700 (PDT)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: cygwin-apps AT cygwin DOT com
Subject: Re: new package offering: zsh
In-Reply-To: <1022183956.9775.ezmlm@cygwin.com>
Message-ID: <Pine.LNX.4.21.0205241651220.14210-100000@gremlin.fruitbat.org>
MIME-Version: 1.0

On 23 May 2002 cygwin-apps-digest-help AT cygwin DOT com wrote:

Hi All,
  There were some messages/questions that were only on the list (I get
the digest version), so I appologize for not responding more promptly.  I
did want to respond to people and get a final resolution on zsh. 

>From: Christopher Faylor <cgf AT redhat DOT com>
>On Wed, May 22, 2002 at 06:32:07PM -0500, Matthew Smith wrote:
>>I'll vote "yes" for this, but I do have a question: have you dealt with
>>binary/text issues specific to the windows platform in your port?
>
>zsh has historically had pretty strong cygwin support so I don't think
>this will be an issue.
>
>I would be thrilled to have this in the distribution.  I've been using
>my own version of zsh for years and have been meaning to submit it
>as a package.  I even went as far as incorporating it into mknetrel.
>
>I'd be happy to have some other victi, er, person to deal with the
>inevitable questions, though.

I'm willing to handle issues with zsh, and in particular, this port of
zsh.  As I've said, I really enjoy hacking on it, and I feel it's a shell
worth of inclusion in Cygwin.  Why else would I have offered it?  (well,
besides the fact that I'm a bit loony, but that's completely besides the
point... :)

>One minor question: isn't there a libncurses requirement for zsh?
>And maybe a libintl-1?

Funny you should mention that.  Actually, only the Zle modules cares
about screen attributes and control, and it is it's own terminal manager
(using termio for the line control).  It does link with termcap, but it's
a static link, so no runtime needed, really.  Also, there doesn't appear
to be a need for libintl (at least I didn't see it in any of the links). 

>cgf

>From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
> You can use the "O_BINARY" flag in open() calls -- but since some 
> platforms don't define it, you must include something like
> 
> #ifndef O_BINARY
> #define O_BINARY 0
> #endif
> 
> somewhere in zsh's header files....
> 
> open() will still obey the default mount mode settings of the underlying 
> cygwin system; that is, if the file is on a text mount, it will be 
> opened using CR/LF-->LF translation.   If the file is on a binary mount, 
> it will be opened in O_BINARY mode.
> 
> include O_BINARY in your open call to force binary mode on the file.
> 
> But, an ounce of experience is worth a pound of theory...all I've got is 
> theory. :-)
>--Chuck

Now, as to the use of O_BINARY.  Is it the general concensus that this
change should be investigated before the package will be accepted or
would people like to give it a try while I experiment with it?

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019