bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gettext 0.11.2: setlocale() ?


From: Paul D. Smith
Subject: gettext 0.11.2: setlocale() ?
Date: 28 Apr 2002 01:02:53 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I'm testing my new installation of gettext on various platforms; I'm
using the "external" method for Gettext support.  On Linux, where
libintl etc. exist, everything works great.

On Solaris, where it doesn't, I get a compile error at the line:

  setlocale (LC_ALL, "");

due to LC_ALL not being defined (and, presumably if I fix that, for
setlocale() not being defined.

I can see a number of ways to fix this: add it as an empty macro to
gettext.h; test the HAVE_SETLOCALE config.h variable which the
gettext.m4 macros already set up for us via configure, and don't compile
that line if it's not set; test HAVE_LOCALE_H and make setlocale() a
macro expanding to empty (this is what diffutils does).

However, what is the _right_ way to fix this?

Nothing in the gettext manual discusses this; the examples just use
setlocale() as an initialization along with other functions which are
handled by gettext.h.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

[Prev in Thread] Current Thread [Next in Thread]