commit 5aab858a157937edbeecf41c9e336f687c100f0d
parent e476c92ceae58bf9384fcb0e615899291fa89de4
Author: ukai <ukai>
Date: Sun, 21 Mar 2004 16:37:08 +0000
* main.c (main): DisplayCharset and DocumentCharset also follow
locale configuration
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,10 @@
2004-03-22 Fumitoshi UKAI <ukai@debian.or.jp>
+ * main.c (main): DisplayCharset and DocumentCharset also follow
+ locale configuration
+
+2004-03-22 Fumitoshi UKAI <ukai@debian.or.jp>
+
* libwc/Makefile.in: add distclean
* scripts/multipart/Makefile.in: add distclean
* scripts/w3mman/Makefile.in: add distclean
diff --git a/main.c b/main.c
@@ -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)