diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-08-10 16:03:26 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 1998-08-10 16:03:26 +0000 |
commit | 0b8296580bae3705c91c35d10839a7fd7b1c5494 (patch) | |
tree | 467d434dca41a7e664d719b8514b621e4e3f0405 /japanese/lynx/files | |
parent | 0555335f0436f158039540a02fae36ada2fb9659 (diff) |
A terminal-based World-Wide Web Client with multi-byte modifications.
PR: ports/6413
Submitted by: Shigeyuki FUKUSHIMA <shige@kuis.kyoto-u.ac.jp>
Notes
Notes:
svn path=/head/; revision=12434
Diffstat (limited to 'japanese/lynx/files')
-rw-r--r-- | japanese/lynx/files/patch-aa | 19 | ||||
-rw-r--r-- | japanese/lynx/files/patch-ad | 55 |
2 files changed, 74 insertions, 0 deletions
diff --git a/japanese/lynx/files/patch-aa b/japanese/lynx/files/patch-aa new file mode 100644 index 000000000000..5a9ece363aa4 --- /dev/null +++ b/japanese/lynx/files/patch-aa @@ -0,0 +1,19 @@ +--- makefile.in.orig Fri Jul 31 18:34:41 1998 ++++ makefile.in Mon Aug 10 02:12:53 1998 +@@ -37,7 +37,7 @@ + libdir= @libdir@ + + ## Where you want the help-files installed +-helpdir= @libdir@/lynx_help ++helpdir= $(prefix)/lib/lynx_help + + ##set the relative location of the WWW library Implementation directory, + ##from this directory +@@ -257,6 +257,7 @@ + (cd $(srcdir)/lynx_help && tar cf - . ) | ( cd $(helpdir) && tar xf - ) + (cd $(srcdir) && tar cf - C[HO]* PROBLEMS README samples test ) | \ + ( cd $(helpdir) && tar xf - ) ++ cp $(srcdir)/lynx.cfg $(helpdir)/samples/lynx.cfg + -rm -f $(libdir)/lynx.tmp + sh -c 'if test -f $(libdir)/lynx.cfg ; then \ + mv $(libdir)/lynx.cfg $(libdir)/lynx.tmp ; \ diff --git a/japanese/lynx/files/patch-ad b/japanese/lynx/files/patch-ad new file mode 100644 index 000000000000..b61e1b1ec678 --- /dev/null +++ b/japanese/lynx/files/patch-ad @@ -0,0 +1,55 @@ +--- src/LYHistory.c.orig Thu Apr 23 21:35:21 1998 ++++ src/LYHistory.c Sun Apr 26 00:13:01 1998 +@@ -22,6 +22,10 @@ + + #include "LYexit.h" + #include "LYLeaks.h" ++ ++#include "HTCJK.h" ++extern HTCJKlang HTCJK; ++extern HTkcode kanji_code; + + #define FREE(x) if (x) {free(x); x = NULL;} + +@@ -433,6 +437,20 @@ + } 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 ? " " : " "), +@@ -601,6 +619,20 @@ + 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); |