aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-30 18:06:28 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-30 18:06:28 +0000
commitdcfbd6abaaa8015fb36911191a9eeb06bd052f6c (patch)
tree4ee185cd006ff254f6c1f95ce503d9343e26abe0 /main.c
parent[w3m-dev 02600] (diff)
downloadw3m-dcfbd6abaaa8015fb36911191a9eeb06bd052f6c.tar.gz
w3m-dcfbd6abaaa8015fb36911191a9eeb06bd052f6c.zip
[w3m-dev 02601]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--main.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/main.c b/main.c
index b6d9c43..f083016 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.29 2001/11/30 11:10:36 ukai Exp $ */
+/* $Id: main.c,v 1.30 2001/11/30 18:06:28 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -1604,7 +1604,20 @@ ldfile(void)
void
ldhelp(void)
{
+#ifdef USE_HELP_CGI
+ char *lang;
+ int n;
+
+ lang = AcceptLang;
+ n = strcspn(lang, ";, \t");
+ cmd_loadURL(Sprintf("file:///$LIB/" HELP_CGI CGI_EXTENSION
+ "?version=%s&lang=%s",
+ Str_form_quote(Strnew_charp(w3m_version))->ptr,
+ Str_form_quote(Strnew_charp_n(lang, n))->ptr)->ptr,
+ NULL);
+#else
cmd_loadURL(helpFile(HELP_FILE), NULL);
+#endif
}
static void