1998-11-02 04:02:00 +00:00
|
|
|
--- src/LYHistory.c.orig Thu Aug 6 21:28:22 1998
|
|
|
|
+++ src/LYHistory.c Mon Aug 10 01:44:44 1998
|
1998-08-10 16:03:26 +00:00
|
|
|
@@ -22,6 +22,10 @@
|
1998-11-02 04:02:00 +00:00
|
|
|
#include <LYexit.h>
|
|
|
|
#include <LYLeaks.h>
|
1998-08-10 16:03:26 +00:00
|
|
|
|
1998-11-02 04:02:00 +00:00
|
|
|
+#include <HTCJK.h>
|
1998-08-10 16:03:26 +00:00
|
|
|
+extern HTCJKlang HTCJK;
|
|
|
|
+extern HTkcode kanji_code;
|
1998-11-02 04:02:00 +00:00
|
|
|
+
|
|
|
|
PUBLIC HTList * Visited_Links = NULL; /* List of safe popped docs. */
|
1998-08-10 16:03:26 +00:00
|
|
|
|
1998-11-02 04:02:00 +00:00
|
|
|
/*
|
|
|
|
@@ -415,6 +419,20 @@
|
1998-08-10 16:03:26 +00:00
|
|
|
} else {
|
|
|
|
StrAllocCopy(Title, "(no title)");
|
|
|
|
}
|
|
|
|
+ if (HTCJK == JAPANESE) {
|
|
|
|
+ char *tmp;
|
|
|
|
+
|
|
|
|
+ if ((tmp = (char *)calloc(strlen(Title)*2, sizeof(char *))) == NULL)
|
|
|
|
+ outofmem(__FILE__, "showhistory");
|
|
|
|
+ *tmp = '\0';
|
|
|
|
+ if (kanji_code == EUC) {
|
|
|
|
+ TO_EUC(Title, tmp);
|
|
|
|
+ } else if (kanji_code == SJIS) {
|
|
|
|
+ TO_SJIS(Title, tmp);
|
|
|
|
+ }
|
|
|
|
+ if (*tmp) StrAllocCopy(Title, tmp);
|
|
|
|
+ FREE(tmp);
|
|
|
|
+ }
|
|
|
|
fprintf(fp0,
|
|
|
|
"%s<em>%d</em>. <tab id=t%d><a href=\"LYNXHIST:%d\">%s</a>\n",
|
|
|
|
(x > 99 ? "" : x < 10 ? " " : " "),
|
1998-11-02 04:02:00 +00:00
|
|
|
@@ -568,6 +586,20 @@
|
1998-08-10 16:03:26 +00:00
|
|
|
LYEntify(&Title, TRUE);
|
|
|
|
} else {
|
|
|
|
StrAllocCopy(Title , "(no title)");
|
|
|
|
+ }
|
|
|
|
+ if (HTCJK == JAPANESE) {
|
|
|
|
+ char *tmp;
|
|
|
|
+
|
|
|
|
+ if ((tmp = (char *)calloc(strlen(Title)*2, sizeof(char *))) == NULL)
|
|
|
|
+ outofmem(__FILE__, "LYShowVisitedLinks");
|
|
|
|
+ *tmp = '\0';
|
|
|
|
+ if (kanji_code == EUC) {
|
|
|
|
+ TO_EUC(Title, tmp);
|
|
|
|
+ } else if (kanji_code == SJIS) {
|
|
|
|
+ TO_SJIS(Title, tmp);
|
|
|
|
+ }
|
|
|
|
+ if (*tmp) StrAllocCopy(Title, tmp);
|
|
|
|
+ FREE(tmp);
|
|
|
|
}
|
|
|
|
if (vl->address != NULL && *vl->address != '\0') {
|
|
|
|
StrAllocCopy(Address, vl->address);
|