delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/02/01/23:02:31

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: <3A7A31C2.515238D4@ece.gatech.edu>
Date: Thu, 01 Feb 2001 23:04:18 -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: cygwin-developers AT sources DOT redhat DOT com
Subject: LC_MESSAGES and gettext

Bruno Haible (gettext maintainer) has sent me notice that there will
soon be a new release of the gettext package.  I'm trying to insure that
it builds (at least statically) OOB on cygwin before he does so, and one
of the 'missing' items in cygwin is the LC_MESSAGES definition.

As ReBuM reported last May,

http://sources.redhat.com/ml/cygwin-developers/2000-05/msg00131.html

a simple change to /usr/include/locale.h (which I think comes from
newlib/libc/include/locale.h) enables gettext to work properly and
actually honor "LOCALE" settings.  DJ then responded, "yeah, that's ok, 
but you have to add a couple of functions but they can return static
information."

Of course, if you do 'export LANG=no' and 'wget --help', you'll see that
the current gettext, without LC_MESSAGES support, actually supports
localized messages.  Go figure.  But, we might as well do it 'right'.

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?

--Chuck


--- locale.h~   Tue Jan 30 16:47:14 2001
+++ locale.h    Thu Feb  1 21:15:53 2001
@@ -22,6 +22,7 @@
 #define LC_MONETARY 3
 #define LC_NUMERIC  4
 #define LC_TIME     5
+#define LC_MESSAGES 6
 
 struct lconv
 {

- Raw text -


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