From 645a72800a20c2a131df377583ddd46ceb52a2e3 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 21 Mar 2004 16:37:08 +0000 Subject: * main.c (main): DisplayCharset and DocumentCharset also follow locale configuration From: Fumitoshi UKAI --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index e18a0c9..47f953c 100644 --- a/main.c +++ b/main.c @@ -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 @@ -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) -- cgit v1.2.3