aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2004-03-22 17:12:33 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2004-03-22 17:12:33 +0000
commit539193de0591e3c14be847e05270cf39476a973e (patch)
tree55d1200cf79f31c47ce6403008e98bce698089e1 /main.c
parent* scripts/w3mhelp.cgi.in: use charset parramter (diff)
downloadw3m-539193de0591e3c14be847e05270cf39476a973e.tar.gz
w3m-539193de0591e3c14be847e05270cf39476a973e.zip
* main.c (main): DisplayCharset also follow locale
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.c b/main.c
index 09144ee..530ec9f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.239 2004/03/22 03:32:27 ukai Exp $ */
+/* $Id: main.c,v 1.240 2004/03/22 17:12:33 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -446,8 +446,10 @@ main(int argc, char **argv, char **envp)
URLHist = newHist();
#ifdef USE_M17N
- if (FollowLocale && Locale)
+ if (FollowLocale && Locale) {
+ DisplayCharset = wc_guess_locale_charset(Locale, DisplayCharset);
SystemCharset = wc_guess_locale_charset(Locale, SystemCharset);
+ }
auto_detect = WcOption.auto_detect;
#endif