This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Missing wide character functions in libc.a


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]