Is LC_MESSAGES defined to something reasonable? can setlocale accept
the NULL?
The following patch is copied from the trunk, and should fix this
problem. Can I apply?
Bo
Index: src/messages.C
===================================================================
--- src/messages.C (revision 14715)
+++ src/messages.C (working copy)
@@ -90,7 +90,10 @@
: lang_(l)
{
if ( lang_.empty() ) {
- char const * lc_msgs = setlocale(LC_MESSAGES, NULL);
+ char const * lc_msgs = 0;
+#ifdef HAVE_LC_MESSAGES
+ lc_msgs = setlocale(LC_MESSAGES, NULL);
+#endif
lang_ = lc_msgs ? lc_msgs : "";
}
// strip off any encoding suffix, i.e., assume 8-bit po files