aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-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