Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3B9EB9CA.20703@ece.gatech.edu>
Date: Tue, 11 Sep 2001 21:26:34 -0400
From: Charles Wilson <cwilson@ece.gatech.edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010713
X-Accept-Language: en-us
MIME-Version: 1.0
To: Herbert <herbert@preston.net>
CC: cygwin@cygwin.com
Subject: Re: Missing wide character functions in libc.a
References: <006201c13a52$0627de90$150a0eca@ewok> <20010910195404.C18481@redhat.com> <3B9D67E3.70203@ece.gatech.edu> <008101c13b29$0a0fcc70$150a0eca@ewok>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Herbert wrote:

> Would you know where can I find the source code to fix missing functions
> (wcspbrk(), wcschr(), wcsrchr(), wcscoll(), wcsrfxm(), towupper(),
> towlower() etc) in /lib/libc.a? I tried to "brower" from GNU's glibc source
> (which does not build on Cygwin at moment), but it does not seem to be a
> clean and easy cut.


Well, on cygwin you don't really use "libc.a".  You use libcygwin.a 
(which is actually an import lib for cygwin1.dll -- but it is 
cygwin1.dll that contains the "libc" functions, really)

It's not surprising that the glibc stuff doesn't work -- cygwin uses 
newlib's implementations.  (Also, as has been previously stated, newlib 
cannot accept code 'lifted' from glibc for legal reasons).


> I also download Cygwin source, but seem to me that these function just
> haven't been implemented?!


Right.  If you want 'em, you're gonna have to write 'em from scratch. 
Without borrowing from glibc.  (And then send in a patch to the newlib 
folks.)

Wasn't this just discussed about two days ago?

--Chuck





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

