From e4305ca608b6dd74732cb877298d74319a4ecba7 Mon Sep 17 00:00:00 2001 From: Dai Sato Date: Wed, 23 May 2007 12:34:20 +0000 Subject: [w3m-dev 04240] nl_langinfo() requires setlocale() --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5f82970..3010c28 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.253 2006/12/10 10:49:23 inu Exp $ */ +/* $Id: main.c,v 1.254 2007/05/23 12:34:20 inu Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -383,8 +383,10 @@ main(int argc, char **argv, char **envp) #endif #endif GC_init(); -#if ENABLE_NLS +#if defined(ENABLE_NLS) || (defined(USE_M17N) && defined(HAVE_LANGINFO_CODESET)) setlocale(LC_ALL, ""); +#endif +#ifdef ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); #endif -- cgit v1.2.3