Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <3A7A46FB.54841565@ece.gatech.edu> Date: Fri, 02 Feb 2001 00:34:51 -0500 From: Charles Wilson X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: DJ Delorie CC: cygwin-developers AT sources DOT redhat DOT com Subject: Re: LC_MESSAGES and gettext References: <3A7A31C2 DOT 515238D4 AT ece DOT gatech DOT edu> <200102020433 DOT XAA18323 AT envy DOT delorie DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit DJ Delorie wrote: > > > What system functions are required for 'true' LC_MESSAGES support, and > > where can I find documentation on them so I can generate a patch for > > newlib? > > DJGPP's locale "kit" includes these: > > localeconv() > setlocale() > mbcurmax() > mblen() > mbstowcs() > mbtowc() > wcstombs() > wctomb() Well, the following functions are all exported by cygwin1.dll (listed in cygwin.din) localeconv (declared in /usr/include/locale.h) setlocale (ditto) mblen (declared in /usr/include/stdlib.h) mbstowcs (ditto) mbtowc (ditto) wcstombs (ditto) wctomb (ditto) The only function 'missing' from your list is mbcurmax(). But, if you look at the file mbcurmax.c in the djgpp source code, that file just declares the variable "__dj_mb_cur_max". Well, cygwin's stdlib.h declares __mb_cur_max, and that symbol is exported by cygwin1.dll (listed in cygwin.din). So, it looks like the *only* thing necessary is just my tiny little change to newlib/libc/locale/locale.h == /usr/include/locale.h Right? --Chuck