www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/02/02/00:31:59

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: DJ Delorie <dj AT delorie DOT com>
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>

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

- Raw text -


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