delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/11/21:26:52

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3B9EB9CA.20703@ece.gatech.edu>
Date: Tue, 11 Sep 2001 21:26:34 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT 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 AT preston DOT net>
CC: cygwin AT cygwin DOT com
Subject: Re: Missing wide character functions in libc.a
References: <006201c13a52$0627de90$150a0eca AT ewok> <20010910195404 DOT C18481 AT redhat DOT com> <3B9D67E3 DOT 70203 AT ece DOT gatech DOT edu> <008101c13b29$0a0fcc70$150a0eca AT ewok>

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/

- Raw text -


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