>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
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 and then later #ifdef _WIN32 lang_ = _nl_locale_name(LC_MESSAGES, "LC_MESSAGES"); #else lang_ = setlocale(LC_MESSAGES, NULL); #endif Looking at the sources of intl/localename.c, it ought to work. Michael, could you try this out? _nl_locale_name calls GetThreadLocale and translates the win32 locales to POSIX-like ones. JMarc