Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > c814e33c18c541f89468b4d90c8678e0 > files > 5

w3m-0.5.3-13.git20180520.0.mga6.src.rpm

diff --git a/scripts/w3mhelp.cgi.in b/scripts/w3mhelp.cgi.in
index 503dddc..f70a6db 100644
--- a/scripts/w3mhelp.cgi.in
+++ b/scripts/w3mhelp.cgi.in
@@ -54,6 +54,12 @@ if (defined($ENV{'QUERY_STRING'})) {
     }
 }
 
+if ($lang eq 'ja') {
+  $help_charset='EUC-JP';
+} else {
+  $help_charset='UTF-8';
+}
+
 %f = %keyfunc;
 %keyfunc = ();
 while (($key, $fname) = each %f) {
@@ -95,6 +101,7 @@ Content-Type: text/html; charset=$charset
 
 <HTML>
 <HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=$help_charset">
 <TITLE>w3m help page</TITLE>
 </HEAD>
 <BODY>