>>>>> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes:

>> Is LC_MESSAGES defined to something reasonable? can setlocale
>> accept the NULL?

Bo> The following patch is copied from the trunk, and should fix this
Bo> problem. Can I apply?

Hmm, what is strange is that GNU gettext intl.h does define
LC_MESSAGES:
/* The LC_MESSAGES locale category is the category used by the functions
   gettext() and dgettext().  It is specified in POSIX, but not in ANSI C.
   On systems that don't define it, use an arbitrary value instead.
   On Solaris, <locale.h> defines __LOCALE_H (or _LOCALE_H in Solaris 2.5)
   then includes <libintl.h> (i.e. this file!) and then only defines
   LC_MESSAGES.  To avoid a redefinition warning, don't define LC_MESSAGES
   in this case.  */
#if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && 
defined __sun))
# define LC_MESSAGES 1729
#endif

So how come this is not defined on windows?

I think nevertheless that you can apply the patch.

JMarc

Reply via email to