aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2007-05-23 12:34:20 +0000
committerDai Sato <satodai@w3m.jp>2007-05-23 12:34:20 +0000
commite4305ca608b6dd74732cb877298d74319a4ecba7 (patch)
treedae2e685496b7d3d8d6b6e3e6392db3d5657e470 /main.c
parent[w3m-dev 03923] avoid extra blanks in pre in table. (diff)
downloadw3m-e4305ca608b6dd74732cb877298d74319a4ecba7.tar.gz
w3m-e4305ca608b6dd74732cb877298d74319a4ecba7.zip
[w3m-dev 04240] nl_langinfo() requires setlocale()
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
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 <signal.h>
@@ -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