X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Flib_setup.c;h=51030b6b4f03069c280ccb85bd4aa63301979012;hp=eb0bffb1654a6c0dc0325469d674f197cac63615;hb=cdbe3d3df7ca08989c4aaead5164309466e519eb;hpb=173dd870810c8b85baa31f9a272d15f96a8f9ff4 diff --git a/ncurses/tinfo/lib_setup.c b/ncurses/tinfo/lib_setup.c index eb0bffb1..51030b6b 100644 --- a/ncurses/tinfo/lib_setup.c +++ b/ncurses/tinfo/lib_setup.c @@ -48,7 +48,7 @@ #include #endif -MODULE_ID("$Id: lib_setup.c,v 1.148 2012/07/21 18:05:41 tom Exp $") +MODULE_ID("$Id: lib_setup.c,v 1.149 2012/09/03 16:19:14 tom Exp $") /**************************************************************************** * @@ -546,7 +546,9 @@ NCURSES_EXPORT(int) _nc_unicode_locale(void) { int result = 0; -#if HAVE_LANGINFO_CODESET +#if defined(__MINGW32__) && USE_WIDEC_SUPPORT + result = 1; +#elif HAVE_LANGINFO_CODESET char *env = nl_langinfo(CODESET); result = !strcmp(env, "UTF-8"); T(("_nc_unicode_locale(%s) ->%d", env, result));