>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Jean-Marc Lasgouttes wrote: Lars> messages.C has become more and more complex with little or no Lars> benefit for "unix" systems. IMHO we should revert messages.C >> to Lars> what it was before this debacle and figure out a windows >> only Lars> solution that does not uglify the rest of the code. >> >> What about something like #ifdef _WIN32 extern "C" const char >> *_nl_locale_name (int category, const char *categoryname); #endif Angus> Why not just '#include "gettextP.h"' ? Because it is not installed when compiling --without-included-gettext. >> and then later >> >> #ifdef _WIN32 lang_ = _nl_locale_name(LC_MESSAGES, "LC_MESSAGES"); >> #else lang_ = setlocale(LC_MESSAGES, NULL); #endif Angus> Why not invoke _nl_locale_name on POSIX machines too? Because we are not 100% sure that the gettext we are using has it. For mingw, we can say that one _has_ to use --with-included-gettext. One has to be careful when using undocumented functions... JMarc