On Wed, Sep 06, 2006 at 12:01:25PM -0500, Bo Peng wrote:

> > The compiled binary seems to have some locale
> > problem since the screen display is messed up.
> 
> There is an error message: 'locale en_US could not be set."

This one can be safely ignored. There is no locale support with mingw
and cygwin. This is a patch that I apply to src/messages.C to avoid
that bogus warning:

--- src/messages.C.orig 2006-08-17 17:36:46.000000000 +0200
+++ src/messages.C      2006-09-06 19:16:44.000000000 +0200
@@ -126,10 +126,10 @@
 #endif
                // setlocale fails (returns NULL) if the corresponding locale
                // is not installed.
-               // On windows (mingw) it always returns NULL.
+               // On windows (mingw and cygwin) it always returns NULL.
                // Since this method gets called for every translatable
                // buffer string like e.g. "Figure:" we warn only once.
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__CYGWIN__)
                static bool warned = false;
                if (!warned && !lc_msgs) {
                        warned = true;


-- 
Enrico

Reply via email to