diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-03-22 17:12:33 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-03-22 17:12:33 +0000 |
commit | 539193de0591e3c14be847e05270cf39476a973e (patch) | |
tree | 55d1200cf79f31c47ce6403008e98bce698089e1 /main.c | |
parent | * scripts/w3mhelp.cgi.in: use charset parramter (diff) | |
download | w3m-539193de0591e3c14be847e05270cf39476a973e.tar.gz w3m-539193de0591e3c14be847e05270cf39476a973e.zip |
* main.c (main): DisplayCharset also follow locale
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |