diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-03-21 16:37:08 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2004-03-21 16:37:08 +0000 |
commit | 645a72800a20c2a131df377583ddd46ceb52a2e3 (patch) | |
tree | ccf1ad13a6013f8dc52c124a87218de80de0e36b /main.c | |
parent | scripts/multipart/Makefile.in: add distclean (diff) | |
download | w3m-645a72800a20c2a131df377583ddd46ceb52a2e3.tar.gz w3m-645a72800a20c2a131df377583ddd46ceb52a2e3.zip |
* main.c (main): DisplayCharset and DocumentCharset also follow
locale configuration
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.237 2003/09/26 20:58:51 ukai Exp $ */ +/* $Id: main.c,v 1.238 2004/03/21 16:37:08 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -425,7 +425,7 @@ main(int argc, char **argv, char **envp) if (non_null(Locale = getenv("LC_ALL")) || non_null(Locale = getenv("LC_CTYPE")) || non_null(Locale = getenv("LANG"))) - SystemCharset = wc_guess_locale_charset(Locale, SystemCharset); + DisplayCharset = DocumentCharset = SystemCharset = wc_guess_locale_charset(Locale, SystemCharset); #ifdef __EMX__ CodePage = wc_guess_charset(getCodePage(), 0); if (CodePage) |