Angus Leeming <[EMAIL PROTECTED]> writes: | 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 | | Why not just '#include "gettextP.h"' ?
a private gettext header... | | > and then later | > | > #ifdef _WIN32 | > lang_ = _nl_locale_name(LC_MESSAGES, "LC_MESSAGES"); | > #else | > lang_ = setlocale(LC_MESSAGES, NULL); | > #endif | | Why not invoke _nl_locale_name on POSIX machines too? a private symbold... Hmm... -- Lgb