diff options
author | Dai Sato <satodai@w3m.jp> | 2007-05-23 12:34:20 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2007-05-23 12:34:20 +0000 |
commit | e4305ca608b6dd74732cb877298d74319a4ecba7 (patch) | |
tree | dae2e685496b7d3d8d6b6e3e6392db3d5657e470 /main.c | |
parent | [w3m-dev 03923] avoid extra blanks in pre in table. (diff) | |
download | w3m-e4305ca608b6dd74732cb877298d74319a4ecba7.tar.gz w3m-e4305ca608b6dd74732cb877298d74319a4ecba7.zip |
[w3m-dev 04240] nl_langinfo() requires setlocale()
Diffstat (limited to '')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |