summaryrefslogtreecommitdiff
path: root/network/w3m/patches/w3m-0.4.1-helpcharset.patch
blob: be787e12a3f40f0ead5414a602a95a50ebd042d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -ruN w3m-0.4.1.orig/scripts/w3mhelp.cgi.in w3m-0.4.1/scripts/w3mhelp.cgi.in
--- w3m-0.4.1.orig/scripts/w3mhelp.cgi.in	2003-06-12 21:03:09.000000000 +0900
+++ w3m-0.4.1/scripts/w3mhelp.cgi.in	2003-06-12 21:25:44.000000000 +0900
@@ -51,6 +51,12 @@
     }
 }
 
+if ($lang eq 'ja') {
+  $help_charset='EUC-JP';
+} else {
+  $help_charset='UTF-8';
+}
+
 %f = %keyfunc;
 %keyfunc = ();
 while (($key, $fname) = each %f) {
@@ -88,6 +94,7 @@
 
 <HTML>
 <HEAD>
+<META http-equiv="Content-Type" content="text/html; charset=$help_charset">
 <TITLE>w3m help page</TITLE>
 </HEAD>
 <BODY>