aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/FreeWnn-server/files
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>1999-02-10 22:32:00 +0800
committerkuriyama <kuriyama@FreeBSD.org>1999-02-10 22:32:00 +0800
commitcd4bcb27e6e18b67a4ace8e57c5f1dec6ec405d3 (patch)
tree831bac5e16262ddab9783ce7506362b3e8404b9c /japanese/FreeWnn-server/files
parent1f9cdf85949cf770ceb58dd78fabea065678fc21 (diff)
downloadfreebsd-ports-gnome-cd4bcb27e6e18b67a4ace8e57c5f1dec6ec405d3.tar.gz
freebsd-ports-gnome-cd4bcb27e6e18b67a4ace8e57c5f1dec6ec405d3.tar.zst
freebsd-ports-gnome-cd4bcb27e6e18b67a4ace8e57c5f1dec6ec405d3.zip
Add dictionaries and some fixes.
PR: ports/9625 Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to 'japanese/FreeWnn-server/files')
-rw-r--r--japanese/FreeWnn-server/files/patch-af2
-rw-r--r--japanese/FreeWnn-server/files/patch-ai72
-rw-r--r--japanese/FreeWnn-server/files/patch-an66
-rw-r--r--japanese/FreeWnn-server/files/patch-ao81
-rw-r--r--japanese/FreeWnn-server/files/patch-ap25
-rw-r--r--japanese/FreeWnn-server/files/patch-aq26
-rw-r--r--japanese/FreeWnn-server/files/patch-ba75
-rw-r--r--japanese/FreeWnn-server/files/patch-bb132
-rw-r--r--japanese/FreeWnn-server/files/patch-bc78
-rw-r--r--japanese/FreeWnn-server/files/patch-bd10
-rw-r--r--japanese/FreeWnn-server/files/patch-be7
-rw-r--r--japanese/FreeWnn-server/files/patch-bf79
-rw-r--r--japanese/FreeWnn-server/files/patch-bg10
-rw-r--r--japanese/FreeWnn-server/files/patch-bi10
-rw-r--r--japanese/FreeWnn-server/files/patch-bj43
-rw-r--r--japanese/FreeWnn-server/files/patch-bk21
-rw-r--r--japanese/FreeWnn-server/files/patch-bl47
17 files changed, 770 insertions, 14 deletions
diff --git a/japanese/FreeWnn-server/files/patch-af b/japanese/FreeWnn-server/files/patch-af
index 7bda975ebb7d..577c5210fb5f 100644
--- a/japanese/FreeWnn-server/files/patch-af
+++ b/japanese/FreeWnn-server/files/patch-af
@@ -35,7 +35,7 @@
#endif /* JAPANESE */
#ifdef CHINESE
- fprintf(stderr, "wnnstat [-weEdDfFSUJBC] [-L lang_name] [server_name]\n");
-+ fprintf(stderr, "wnnstat [-weEdDfFUBCV] [-L lang_name] [server_name]\n");
++ fprintf(stderr, "cwnnstat [-weEdDfFUBCV] [-L lang_name] [server_name]\n");
#endif /* CHINESE */
#ifdef KOREAN
- fprintf(stderr, "kwnnstat [-weEdDfFKU] [-L lang_name] [server_name]\n");
diff --git a/japanese/FreeWnn-server/files/patch-ai b/japanese/FreeWnn-server/files/patch-ai
index e7cf3360fbb4..451f9a9b4956 100644
--- a/japanese/FreeWnn-server/files/patch-ai
+++ b/japanese/FreeWnn-server/files/patch-ai
@@ -1,6 +1,6 @@
---- ./kWnn/jlib/Imakefile.orig Wed Aug 17 10:11:40 1994
-+++ ./kWnn/jlib/Imakefile Sat Jul 19 23:55:17 1997
-@@ -1,6 +1,9 @@
+--- kWnn/jlib/Imakefile.orig Wed Aug 17 10:11:40 1994
++++ kWnn/jlib/Imakefile Tue Jan 5 23:06:15 1999
+@@ -1,7 +1,11 @@
XCOMM
XCOMM $Id: Imakefile,v 1.2 1994/08/17 01:11:40 kuwa Exp $
XCOMM
@@ -8,9 +8,11 @@
+XCOMM -- S. Taoka
+XCOMM
#define DoNormalLib YES
++#define DoSharedLib YES
#include <Library.tmpl>
-@@ -10,7 +13,9 @@
+
+@@ -10,7 +14,9 @@
LINKS = getopt.c jl.c js.c wnnerrmsg.c
JLIBDEFINES = -DWRITE_CHECK
INCLUDES = -I$(KWNNINCLUDESRC) -I$(TOP)
@@ -21,7 +23,7 @@
INSTALLFLAGS = $(INSTBINFLAGS)
LINTLIBS =
-@@ -28,6 +33,15 @@
+@@ -28,6 +34,15 @@
OBJ4= strings.o
SRC5= $(KWNNETCSRC)/bcopy.c
OBJ5= bcopy.o
@@ -37,25 +39,69 @@
LOCAL_RKSRCS= $(KWNNROMKANSRC)/rk_bltinfn.c \
$(KWNNROMKANSRC)/rk_main.c \
$(KWNNROMKANSRC)/rk_modread.c \
-@@ -40,8 +54,8 @@
+@@ -40,13 +55,26 @@
$(KWNNROMKANSRC)/rk_read.o \
$(KWNNROMKANSRC)/rk_vars.o
-LOCAL_ETCSRCS = $(SRC4) $(SRC5)
-LOCAL_ETCOBJS = $(OBJ4) $(OBJ5)
++UNSHARED_LOCAL_RKOBJS= $(KWNNROMKANSRC)/unshared/rk_bltinfn.o \
++ $(KWNNROMKANSRC)/unshared/rk_main.o \
++ $(KWNNROMKANSRC)/unshared/rk_modread.o \
++ $(KWNNROMKANSRC)/unshared/rk_read.o \
++ $(KWNNROMKANSRC)/unshared/rk_vars.o
++
+LOCAL_ETCSRCS = $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8)
+LOCAL_ETCOBJS = $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
SRCS= $(SRC1) $(SRC3) $(LOCAL_ETCSRCS)
OBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS)
++UNSHAREDOBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(UNSHARED_LOCAL_RKOBJS)
++
++SOKWNN4LIBREV=1.0
+
+ LibraryObjectRule()
++#if DoSharedLib
++AllTarget($(OBJS) libkwnn.a libkwnn4.so.$(SOKWNN4LIBREV))
++#else
+ AllTarget($(OBJS) libkwnn.a)
++#endif
+
+ includes:: $(LINKS)
+
+@@ -65,11 +93,19 @@
-@@ -80,6 +94,10 @@
- WnnSpecialObjectRule($(OBJ3),$(SRC3),$(KWNNETCSRC),)
- WnnSpecialObjectRule($(OBJ4),$(SRC4),$(KWNNETCSRC),)
- WnnSpecialObjectRule($(OBJ5),$(SRC5),$(KWNNETCSRC),)
-+WnnSpecialObjectRule($(OBJ6),$(SRC6),$(KWNNETCSRC),)
-+WnnSpecialObjectRule($(OBJ7),$(SRC7),$(KWNNETCSRC),)
-+WnnSpecialObjectRule($(OBJ8),$(SRC8),$(KWNNETCSRC),)
+ NormalLintTarget($(SRC2))
+
+-NormalLibraryTarget(kwnn,$(OBJS))
++#if DoSharedLib
++SharedLibraryTarget(kwnn4,$(SOKWNN4LIBREV),$(OBJS),.,.)
++#endif
++
++UnsharedLibraryTarget(kwnn,$(UNSHAREDOBJS),unshared,..)
+ LintLibraryTarget(kwnn,$(SRCS))
+
+ instlib:: install
+
++#if DoSharedLib
++InstallSharedLibrary(kwnn4,$(SOKWNN4LIBREV),$(WNNLIBDIR))
++#endif
+
+ InstallLibrary(kwnn,$(WNNLIBDIR))
+
+ #if ProfileLibJlib
+@@ -77,9 +113,12 @@
+ InstallLibrary(kwnn_p,$(WNNLIBDIR))
+ #endif
+
+-WnnSpecialObjectRule($(OBJ3),$(SRC3),$(KWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ4),$(SRC4),$(KWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ5),$(SRC5),$(KWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ3),$(SRC3),$(KWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ4),$(SRC4),$(KWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ5),$(SRC5),$(KWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ6),$(SRC6),$(KWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ7),$(SRC7),$(KWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ8),$(SRC8),$(KWNNETCSRC),)
$(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
diff --git a/japanese/FreeWnn-server/files/patch-an b/japanese/FreeWnn-server/files/patch-an
new file mode 100644
index 000000000000..885b931a2511
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-an
@@ -0,0 +1,66 @@
+--- Xwnmo/xwnmo/client.c.~1~ Mon Aug 23 11:06:16 1993
++++ Xwnmo/xwnmo/client.c Fri Feb 6 06:44:03 1998
+@@ -53,7 +53,7 @@
+ {
+ char *p;
+ char ret = '\0';
+- extern char *index();
++/* extern char *index();*/
+
+ if ((p = romkan_dispmode()) == NULL) return(ret);
+ if ((p = (char*)index(p, ':')) == NULL) return(ret);
+--- Xwnmo/xwnmo/screen.c.~1~ Tue Dec 1 15:10:57 1992
++++ Xwnmo/xwnmo/screen.c Fri Feb 6 06:48:15 1998
+@@ -361,7 +361,7 @@
+ get_rk_modes()
+ {
+ char *p;
+- extern char *index();
++/* extern char *index();*/
+
+ strcpy(rk_modes, (NULL == (p = romkan_dispmode()) ? "[ ]" : p));
+ if ((p = (char*)index(rk_modes, ':')) != NULL && *(p + 1)) {
+--- Xwnmo/xwnmo/jhlp.c.~1~ Thu Aug 4 16:10:14 1994
++++ Xwnmo/xwnmo/jhlp.c Fri Feb 6 06:50:24 1998
+@@ -415,7 +415,7 @@
+ XLCd xlc;
+ #endif /* X11R5 */
+ extern char *get_server_env();
+- extern char *index();
++/* extern char *index(); */
+
+ prgname = argv[0];
+ if (create_arg_string(argv, argc) == -1) exit(1);
+--- Xwnmo/xjutil/init_w.c.~1~ Thu Aug 4 16:10:10 1994
++++ Xwnmo/xjutil/init_w.c Fri Feb 6 07:54:48 1998
+@@ -76,7 +76,7 @@
+ char *p;
+ char ret = '\0';
+ #ifndef SYSVR2
+- extern char *index();
++/* extern char *index(); */
+ #else
+ extern char *strchr();
+ #endif
+--- Xwnmo/xjutil/jutil.c.~1~ Thu Jan 21 17:05:44 1993
++++ Xwnmo/xjutil/jutil.c Fri Feb 6 07:56:50 1998
+@@ -664,7 +664,7 @@
+ extern int srand();
+ extern long rand();
+ #else
+- extern int srandom();
++/* extern int srandom(); */
+ extern long random();
+ #endif
+ extern long time();
+--- Xwnmo/xjutil/kensaku.c.~1~ Tue Dec 1 14:59:48 1992
++++ Xwnmo/xjutil/kensaku.c Fri Feb 6 07:58:54 1998
+@@ -154,7 +154,7 @@
+ static char message4[2048];
+ int ret;
+ char *table_t[6];
+- extern int qsort();
++/* extern int qsort();*/
+
+ if (get_env() == -1) return(NULL);
+
diff --git a/japanese/FreeWnn-server/files/patch-ao b/japanese/FreeWnn-server/files/patch-ao
new file mode 100644
index 000000000000..c3aa020ff065
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-ao
@@ -0,0 +1,81 @@
+diff -ru Wnn.org/jd/jserverrc Wnn/jd/jserverrc
+--- Wnn.org/jd/jserverrc Mon Sep 6 10:47:31 1993
++++ Wnn/jd/jserverrc Tue Feb 10 07:58:43 1998
+@@ -20,7 +20,9 @@
+ ;readfile wnncons/tankan3.dic
+
+ ; n nbun hindo len jiri flag jisho sbn dbn_len sbn_cnt suji kana eisuu kigou toji fuzoku kai
+-def_param 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++;def_param 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++; New Parameter
++def_param 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
+
+ ;set_giji_eisuu '-' '_' 0x20 \x5c ^M '変' 1234 012 \o12
+ set_giji_eisuu '-' '_' 0x20 '―' '_' ' ̄' '!' '?' '.' ',' ':' ';' ':' ';' '?' '!' ',' '.' '・'
+diff -ru Wnn.org/jd/wnnenvrc.omr Wnn/jd/wnnenvrc.omr
+--- Wnn.org/jd/wnnenvrc.omr Mon Sep 6 10:47:34 1993
++++ Wnn/jd/wnnenvrc.omr Tue Feb 10 07:58:56 1998
+@@ -19,4 +19,7 @@
+ ;setdic wnncons/tankan3.dic - 1 1 1 - - 0
+
+ ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko
+-setparam 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++;setparam 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++; New Parameter
++setparam 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
++
+diff -ru Wnn.org/jd/wnnenvrc.rem Wnn/jd/wnnenvrc.rem
+--- Wnn.org/jd/wnnenvrc.rem Mon Sep 6 10:47:36 1993
++++ Wnn/jd/wnnenvrc.rem Tue Feb 10 07:59:06 1998
+@@ -19,4 +19,6 @@
+ ;setdic wnncons/tankan3.dic - 1 1 1 - - 0
+
+ ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko
+-setparam 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++;setparam 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++; New Parameter
++setparam 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
+diff -ru Wnn.org/jd/wnnenvrc.rev Wnn/jd/wnnenvrc.rev
+--- Wnn.org/jd/wnnenvrc.rev Mon Sep 6 10:47:37 1993
++++ Wnn/jd/wnnenvrc.rev Tue Feb 10 07:59:15 1998
+@@ -19,4 +19,6 @@
+ ;setdic wnncons/tankan3.dic !@WNN_DIC_DIR/wnncons/tankan3.frq 1 1 1 - - 0
+
+ ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko
+-setparam 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++;setparam 2 10 2 40 100 200 20 1 40 -40 40 -100 40 80 40 100 40
++; New Parameter
++setparam 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
+diff -ru Wnn.org/jd/wnnenvrc_R.omr Wnn/jd/wnnenvrc_R.omr
+--- Wnn.org/jd/wnnenvrc_R.omr Wed Aug 25 15:11:40 1993
++++ Wnn/jd/wnnenvrc_R.omr Tue Feb 10 07:59:24 1998
+@@ -19,4 +19,6 @@
+ ;setdic wnncons/tankan3.dic - 1 1 1 - - 1
+
+ ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko
+-setparam 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200
++;setparam 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200
++; New Parameter
++setparam 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
+diff -ru Wnn.org/jd/wnnenvrc_R.rem Wnn/jd/wnnenvrc_R.rem
+--- Wnn.org/jd/wnnenvrc_R.rem Wed Aug 25 15:11:48 1993
++++ Wnn/jd/wnnenvrc_R.rem Tue Feb 10 07:59:34 1998
+@@ -19,4 +19,6 @@
+ ;setdic wnncons/tankan3.dic - 1 1 1 - - 1
+
+ ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko
+-setparam 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200
++;setparam 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200
++; New Parameter
++setparam 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
+diff -ru Wnn.org/jd/wnnenvrc_R.rev Wnn/jd/wnnenvrc_R.rev
+--- Wnn.org/jd/wnnenvrc_R.rev Wed Aug 25 15:11:54 1993
++++ Wnn/jd/wnnenvrc_R.rev Tue Feb 10 07:59:42 1998
+@@ -19,4 +19,6 @@
+ ;setdic wnncons/tankan3.dic - 1 1 1 - - 1
+
+ ;; N nsho hindo len jiri flag jisho sbn dbn_len sbn_cnt suuji kana eisuu kigou toji_kakko fuzokogo kaikakko
+-setparam 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200
++;setparam 2 10 2 45 1 80 5 1 50 -20 400 -10 100 -100 200 0 200
++; New Parameter
++setparam 2 10 2 45 100 200 5 1 40 -100 200 -100 200 80 200 200 200
diff --git a/japanese/FreeWnn-server/files/patch-ap b/japanese/FreeWnn-server/files/patch-ap
new file mode 100644
index 000000000000..17495e11a56e
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-ap
@@ -0,0 +1,25 @@
+--- Imakefile.~1~ Tue Oct 4 08:18:46 1994
++++ Imakefile Tue Feb 10 11:29:58 1998
+@@ -4,7 +4,7 @@
+ #define IHaveSubdirs
+ #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
+
+-#if BuildWnn || BuildXwnmo
++#if BuildWnn
+ WNNDIR = Wnn
+ #endif
+ #if BuildCWnn
+--- ./Xwnmo/jd/ximconf.~1~ Thu Feb 12 10:20:17 1998
++++ ./Xwnmo/jd/ximconf Thu Feb 12 10:32:59 1998
+@@ -18,8 +18,8 @@
+ zh_TW zh_TW.ucns 2,1,2 True Yincoding
+ zh_CN.eucCN|zh_CN.ugb \
+ zh_CN zh_CN.ugb 2,1,2 True Yincoding
+-ja|ja_JP.eucJP|ja_JP.ujis|ja_JP.mscode|ja_JP.SJIS|ja_JP.jis8|ja_JP.jis7|ja_JP.pjis \
+- ja_JP ja_JP.ujis 2,1,2 True Normal
++ja|ja_JP.EUC|ja_JP.eucJP|ja_JP.ujis|ja_JP.mscode|ja_JP.SJIS|ja_JP.jis8|ja_JP.jis7|ja_JP.pjis \
++ ja_JP ja_JP.EUC 2,1,2 True Normal
+
+-setdefaultlocale ja_JP.ujis
++setdefaultlocale ja_JP.EUC
+ setworldlocale wr_WR.ct
diff --git a/japanese/FreeWnn-server/files/patch-aq b/japanese/FreeWnn-server/files/patch-aq
new file mode 100644
index 000000000000..d476242347bd
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-aq
@@ -0,0 +1,26 @@
+--- Xwnmo/xwnmo/localalloc.c.~1~ Tue Dec 1 15:10:40 1992
++++ Xwnmo/xwnmo/localalloc.c Thu Jun 25 12:11:29 1998
+@@ -112,6 +112,7 @@
+ {
+ char *ptr;
+ if (size == 0) return(NULL);
++ size += (sizeof(char *)-(size%sizeof(char *)));
+ if ((ptr = malloc(size)) == NULL) {
+ #ifdef ALLOC_DEBUG
+ print_out1("alloc failed with size = %d", size);
+@@ -134,6 +135,7 @@
+ unsigned size;
+ {
+ if (size == 0) return(ptr);
++ size += (sizeof(char *)-(size%sizeof(char *)));
+ if (ptr == NULL) return(Malloc(size));
+ #ifdef ALLOC_DEBUG
+ unregister_debug(ptr);
+@@ -153,6 +155,7 @@
+ {
+ char *ptr;
+ if (size == 0) return(NULL);
++ size += (sizeof(char *)-(size%sizeof(char *)));
+ if ((ptr = calloc(num, size)) == NULL) {
+ return(NULL);
+ }
diff --git a/japanese/FreeWnn-server/files/patch-ba b/japanese/FreeWnn-server/files/patch-ba
new file mode 100644
index 000000000000..3b92501b6212
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-ba
@@ -0,0 +1,75 @@
+--- ../Wnn-4.2-patched/cWnn/cdic/Imakefile Tue Aug 23 11:26:22 1994
++++ cWnn/cdic/Imakefile Mon Nov 2 18:44:39 1998
+@@ -55,6 +55,12 @@
+ instserver:: install
+
+ WnnMakeDirectories(install,$(CWNNDICDIR))
++/*
++ * Bugfix.
++ * Because "NO" is same to "YES"!!
++ * And some additional bugfix.
++ */
++#if (WnnInstallDicForcibly == YES)
+ InstallMultiple($(ALLTGT),$(CWNNSYSDICDIR))
+
+ install::
+@@ -62,6 +68,9 @@
+ do \
+ $(WNNTOUCH) $(DESTDIR)$(CWNNSYSDICDIR)/$$i ;\
+ done
++#else
++WnnInstallDicMultiple($(ALLTGT),$(CWNNSYSDICDIR))
++#endif
+
+ depend::
+ @echo "skipping make in my dir"
+--- ../Wnn-4.2-patched/cWnn/tdic/Imakefile Tue Aug 23 11:26:41 1994
++++ cWnn/tdic/Imakefile Mon Nov 2 18:46:56 1998
+@@ -45,6 +45,12 @@
+ instserver:: install
+
+ WnnMakeDirectories(install,$(TWNNDICDIR))
++/*
++ * Bugfix.
++ * Because "NO" is same to "YES"!!
++ * And some additional bugfix.
++ */
++#if (WnnInstallDicForcibly == YES)
+ InstallMultiple($(ALLTGT),$(TWNNSYSDICDIR))
+
+ install::
+@@ -52,6 +58,9 @@
+ do \
+ $(WNNTOUCH) $(DESTDIR)$(TWNNSYSDICDIR)/$$i ;\
+ done
++#else
++WnnInstallDicMultiple($(ALLTGT),$(TWNNSYSDICDIR))
++#endif
+
+ depend::
+ @echo "skipping make in my dir"
+--- ../Wnn-4.2-patched/kWnn/kdic/Imakefile Tue Aug 23 11:25:31 1994
++++ kWnn/kdic/Imakefile Mon Nov 2 18:49:05 1998
+@@ -41,6 +41,12 @@
+ instserver:: install
+
+ WnnMakeDirectories(install,$(KWNNDICDIR))
++/*
++ * Bugfix.
++ * Because "NO" is same to "YES"!!
++ * And some additional bugfix.
++ */
++#if (WnnInstallDicForcibly == YES)
+ InstallMultiple($(ALLTGT),$(KWNNSYSDICDIR))
+
+ install::
+@@ -48,6 +54,9 @@
+ do \
+ $(WNNTOUCH) $(DESTDIR)$(KWNNSYSDICDIR)/$$i ;\
+ done
++#else
++WnnInstallDicMultiple($(ALLTGT),$(KWNNSYSDICDIR))
++#endif
+
+ depend::
+ @echo "skipping make in my dir"
diff --git a/japanese/FreeWnn-server/files/patch-bb b/japanese/FreeWnn-server/files/patch-bb
new file mode 100644
index 000000000000..1722ecbc2600
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bb
@@ -0,0 +1,132 @@
+--- config/Project.tmpl.orig Wed Jan 6 00:32:36 1999
++++ config/Project.tmpl Wed Jan 6 02:36:03 1999
+@@ -389,6 +389,8 @@
+ XCOMM -----------------------------------------------------------------------
+ XCOMM X Window System make variables; these need to be coordinated with rules
+
++ SYS_LIBRARIES = -lcrypt /* For FreeBSD */
++
+ /*
+ * This list must be reflected in the DIRS_TO_BUILD list in the top-level
+ * Makefile.
+@@ -413,6 +415,9 @@
+ XAPPLOADDIR = XAppLoadDir /* application default resource dir */
+ FONTCFLAGS = FontCompilerFlags
+
++ INSTINCFLAGS = InstIncFlags -c /* XXX - dirty hack by */
++ INSTDATFLAGS = InstDatFlags -c /* XXX - Satoshi */
++ INSTBINFLAGS = InstBinFlags -c /* XXX - Asami */
+ INSTAPPFLAGS = $(INSTDATFLAGS) /* XXX - this should go away - XXX */
+
+ #ifdef UseInstalled
+@@ -465,6 +470,7 @@
+ #define ProfileLibX11 NO /* profiled X library */
+ #endif
+ XLIBSRC = $(LIBSRC)/X11
++#ifndef XFree86Version
+ #if SharedLibX11
+ #ifndef SharedX11Rev
+ #define SharedX11Rev 6.0
+@@ -481,6 +487,16 @@
+ UnsharedLibReferences(XONLY,X11,$(XLIBSRC))
+ #endif
+ #endif
++#else
++#if SharedLibX11
++#ifndef SharedX11Rev
++#define SharedX11Rev 6.0
++#endif
++SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
++#else
++UnsharedLibReferences(XONLY,X11,$(XLIBSRC))
++#endif
++#endif
+ XLIBONLY = $(XONLYLIB)
+
+ #ifndef SharedLibXext
+@@ -1097,6 +1113,13 @@
+ obj : depends @@\
+ $(CC) -c $(CFLAGS) define direct/`basename $@ .o`.c @@\
+
++#define WnnSpecialSharedObjectRule(obj, depends, direct, define) @@\
++obj : depends @@\
++ (cd unshared ; \ @@\
++ $(CC) -c $(CFLAGS) define direct/`basename $@ .o`.c) @@\
++ $(CC) -c $(CFLAGS) define $(SHLIBDEF) $(SHAREDCODEDEF) \ @@\
++ $(PICFLAGS) direct/`basename $@ .o`.c @@\
++
+ #ifdef WnnMakeDirectories
+ #undef WnnMakeDirectories
+ #endif
+@@ -1117,10 +1140,16 @@
+ #undef ImakeSubCmdHelper
+ #endif
+
++/*
++ * Change a variavle's name from "$imakeprefix" to "$(IMAKEPREFIX)".
++ * Because it caused a error on XFree86 3.1.2S and 3.1.2E.
++ * The Imake rule of XFree86 3.1.2S and 3.1.2E FreeBSD was changed.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/20
++ */
+ #ifdef UseInstalled
+-#define ImakeSubCmdHelper $(IMAKE) -DUseInstalled -I$$imakeprefix$(IMIRULESRC) -I$(IRULESRC) $(IMAKE_DEFINES)
++#define ImakeSubCmdHelper $(IMAKE) -DUseInstalled -I$(IMAKEPREFIX)$(IMIRULESRC) -I$(IRULESRC) $(IMAKE_DEFINES)
+ #else
+-#define ImakeSubCmdHelper $$imakeprefix$(IMAKE) -I$$imakeprefix$(IMIRULESRC) -I$$imakeprefix$(IRULESRC) $(IMAKE_DEFINES)
++#define ImakeSubCmdHelper $(IMAKEPREFIX)$(IMAKE) -I$(IMAKEPREFIX)$(IMIRULESRC) -I$(IMAKEPREFIX)$(IRULESRC) $(IMAKE_DEFINES)
+ #endif
+
+ #define WnnInstallDicMultiple(list,dest) @@\
+@@ -1135,16 +1164,16 @@
+ done
+
+ #ifndef BuildWnn
+-#define BuildWnn YES
++#define BuildWnn %%BuildWnn%%
+ #endif
+ #ifndef BuildCWnn
+-#define BuildCWnn YES
++#define BuildCWnn %%BuildCWnn%%
+ #endif
+ #ifndef BuildKWnn
+-#define BuildKWnn YES
++#define BuildKWnn %%BuildKWnn%%
+ #endif
+ #ifndef BuildXwnmo
+-#define BuildXwnmo YES
++#define BuildXwnmo %%BuildXwnmo%%
+ #endif
+
+ #ifndef BuildJserver
+@@ -1169,7 +1198,7 @@
+ #define BuildWnnMan YES
+ #endif
+ #ifndef BuildJlibV3
+-#define BuildJlibV3 NO
++#define BuildJlibV3 %%BuildJlibV3%%
+ #endif
+ #if BuildPubdic || BuildWnnConsDic
+ #define BuildWnnDicUtilForCompile YES
+@@ -1236,8 +1265,9 @@
+ #else
+ IMTOP = $(CONTRIBSRC)/programs/Xsi
+ #endif
+- WNNWNNDIR = /usr/local/lib/wnn
+- WNNBINDIR = /usr/local/bin
++ PREFIX = /usr/local
++ WNNWNNDIR = ${PREFIX}/lib/wnn
++ WNNBINDIR = ${PREFIX}/bin
+ WNNINCDIR = $(INCROOT)
+ WNNLIBDIR = $(USRLIBDIR)
+ WNNTERM_LIB = termLibrary
+@@ -1352,6 +1382,10 @@
+ XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC) $(XWNMOXLIBINC)
+ XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a
+ XWNMOLIBRARIES = $(XWNMOJLIB)
++
++XCOMM for FreeBSD port
++XCOMM
++MANPATH= /usr/X11R6/man/%%LOCAL_MAN_LANG%%
+
+ XWNMODEF = -DBC_X11R5
+
diff --git a/japanese/FreeWnn-server/files/patch-bc b/japanese/FreeWnn-server/files/patch-bc
new file mode 100644
index 000000000000..19651afd02b2
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bc
@@ -0,0 +1,78 @@
+--- Wnn/jlib/Imakefile.orig Wed Aug 17 10:10:03 1994
++++ Wnn/jlib/Imakefile Wed Nov 18 01:17:23 1998
+@@ -2,6 +2,7 @@
+ XCOMM $Id: Imakefile,v 1.10 1994/08/17 01:10:03 kuwa Exp $
+ XCOMM
+ #define DoNormalLib YES
++#define DoSharedLib YES
+
+ #include <Library.tmpl>
+
+@@ -45,13 +46,26 @@
+ $(WNNROMKANSRC)/rk_read.o \
+ $(WNNROMKANSRC)/rk_vars.o
+
++UNSHARED_LOCAL_RKOBJS= $(WNNROMKANSRC)/unshared/rk_bltinfn.o \
++ $(WNNROMKANSRC)/unshared/rk_main.o \
++ $(WNNROMKANSRC)/unshared/rk_modread.o \
++ $(WNNROMKANSRC)/unshared/rk_read.o \
++ $(WNNROMKANSRC)/unshared/rk_vars.o
++
+ LOCAL_ETCSRCS = $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8)
+ LOCAL_ETCOBJS = $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
+ SRCS= $(SRC1) $(LOCAL_ETCSRCS)
+ OBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS)
++UNSHAREDOBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(UNSHARED_LOCAL_RKOBJS)
+
++SOWNN4LIBREV=1.0
++
+ LibraryObjectRule()
++#if DoSharedLib
++AllTarget($(OBJS) libwnn.a libwnn4.so.$(SOWNN4LIBREV))
++#else
+ AllTarget($(OBJS) libwnn.a)
++#endif
+
+ NormalLibraryTarget(getopt,$(OBJ2))
+ LintLibraryTarget(getopt,$(SRC2))
+@@ -65,11 +79,20 @@
+
+ SingleProgramTarget(kankana,kankana.o,$(WNNJLIB),)
+
+-NormalLibraryTarget(wnn,$(OBJS))
++
++#if DoSharedLib
++SharedLibraryTarget(wnn4,$(SOWNN4LIBREV),$(OBJS),.,.)
++#endif
++
++UnsharedLibraryTarget(wnn,$(UNSHAREDOBJS),unshared,..)
+ LintLibraryTarget(wnn,$(SRCS))
+
+ instlib:: install
+
++#if DoSharedLib
++InstallSharedLibrary(wnn4,$(SOWNN4LIBREV),$(WNNLIBDIR))
++#endif
++
+ InstallLibrary(wnn,$(WNNLIBDIR))
+
+ #if ProfileLibJlib
+@@ -77,12 +100,12 @@
+ InstallLibrary(wnn_p,$(WNNLIBDIR))
+ #endif
+
+-WnnSpecialObjectRule($(OBJ3),$(SRC3),$(WNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ4),$(SRC4),$(WNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ5),$(SRC5),$(WNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ6),$(SRC6),$(WNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ7),$(SRC7),$(WNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ8),$(SRC8),$(WNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ3),$(SRC3),$(WNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ4),$(SRC4),$(WNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ5),$(SRC5),$(WNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ6),$(SRC6),$(WNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ7),$(SRC7),$(WNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ8),$(SRC8),$(WNNETCSRC),)
+
+ $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
+ @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
diff --git a/japanese/FreeWnn-server/files/patch-bd b/japanese/FreeWnn-server/files/patch-bd
new file mode 100644
index 000000000000..99c0d6cad591
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bd
@@ -0,0 +1,10 @@
+--- Wnn/romkan/Imakefile.orig Wed Aug 17 10:10:21 1994
++++ Wnn/romkan/Imakefile Wed Nov 18 00:08:23 1998
+@@ -2,6 +2,7 @@
+ XCOMM $Id: Imakefile,v 1.4 1994/08/17 01:10:21 kuwa Exp $
+ XCOMM
+ #define DoNormalLib YES
++#define DoSharedLib YES
+
+ #include <Library.tmpl>
+
diff --git a/japanese/FreeWnn-server/files/patch-be b/japanese/FreeWnn-server/files/patch-be
new file mode 100644
index 000000000000..6d7e402faae7
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-be
@@ -0,0 +1,7 @@
+--- cWnn/jserver/Imakefile.ORG Tue Aug 23 11:22:25 1994
++++ cWnn/jserver/Imakefile Fri Apr 14 23:47:57 1995
+@@ -148,3 +148,3 @@
+ LinkDiffNameFile($(TSRC0),$(SRC0),.)
+-LinkDiffNameFile($(TSRCGETHINSI),$(SRCGETHINSI),$(CWNNETCSRC))
++LinkDiffNameFile($(TSRCGETHINSI),$(SRCGETHINSI),)
+
diff --git a/japanese/FreeWnn-server/files/patch-bf b/japanese/FreeWnn-server/files/patch-bf
new file mode 100644
index 000000000000..4b5ea855bc4e
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bf
@@ -0,0 +1,79 @@
+--- ../../../work/Xsi/cWnn/jlib/Imakefile.~1~ Wed Aug 17 10:11:04 1994
++++ cWnn/jlib/Imakefile Tue Jan 5 22:43:30 1999
+@@ -2,6 +2,7 @@
+ XCOMM $Id: Imakefile,v 1.9 1994/08/17 01:11:04 kuwa Exp $
+ XCOMM
+ #define DoNormalLib YES
++#define DoSharedLib YES
+
+ #include <Library.tmpl>
+
+@@ -46,13 +47,26 @@
+ $(CWNNROMKANSRC)/rk_read.o \
+ $(CWNNROMKANSRC)/rk_vars.o
+
++UNSHARED_LOCAL_RKOBJS= $(CWNNROMKANSRC)/unshared/rk_bltinfn.o \
++ $(CWNNROMKANSRC)/unshared/rk_main.o \
++ $(CWNNROMKANSRC)/unshared/rk_modread.o \
++ $(CWNNROMKANSRC)/unshared/rk_read.o \
++ $(CWNNROMKANSRC)/unshared/rk_vars.o
++
+ LOCAL_ETCSRCS = $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8)
+ LOCAL_ETCOBJS = $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
+ SRCS= $(SRC1) $(SRC3) $(LOCAL_ETCSRCS)
+ OBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS)
++UNSHAREDOBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(UNSHARED_LOCAL_RKOBJS)
++
++SOCWNN4LIBREV=1.0
+
+ LibraryObjectRule()
++#if DoSharedLib
++AllTarget($(OBJS) libcwnn.a libcwnn4.so.$(SOCWNN4LIBREV))
++#else
+ AllTarget($(OBJS) libcwnn.a)
++#endif
+
+ includes:: $(LINKS)
+
+@@ -74,11 +88,19 @@
+
+ SingleProgramTarget(kankana,kankana.o,$(CWNNJLIB),)
+
+-NormalLibraryTarget(cwnn,$(OBJS))
++#if DoSharedLib
++SharedLibraryTarget(cwnn4,$(SOCWNN4LIBREV),$(OBJS),.,.)
++#endif
++
++UnsharedLibraryTarget(cwnn,$(UNSHAREDOBJS),unshared,..)
+ LintLibraryTarget(cwnn,$(SRCS))
+
+ instlib:: install
+
++#if DoSharedLib
++InstallSharedLibrary(cwnn4,$(SOCWNN4LIBREV),$(WNNLIBDIR))
++#endif
++
+ InstallLibrary(cwnn,$(WNNLIBDIR))
+
+ #if ProfileLibJlib
+@@ -86,13 +108,13 @@
+ InstallLibrary(cwnn_p,$(WNNLIBDIR))
+ #endif
+
+-WnnSpecialObjectRule($(OBJ3),$(SRC3),$(CWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ4),$(SRC4),$(CWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ5),$(SRC5),$(CWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ6),$(SRC6),$(CWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ7),$(SRC7),$(CWNNETCSRC),)
+-WnnSpecialObjectRule($(OBJ8),$(SRC8),$(CWNNETCSRC),)
+-
++WnnSpecialSharedObjectRule($(OBJ3),$(SRC3),$(CWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ4),$(SRC4),$(CWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ5),$(SRC5),$(CWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ6),$(SRC6),$(CWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ7),$(SRC7),$(CWNNETCSRC),)
++WnnSpecialSharedObjectRule($(OBJ8),$(SRC8),$(CWNNETCSRC),)
++
+ $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
+ @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
+ cd $(CWNNROMKANSRC); echo "making all in $(CWNNROMKANSRC)"; \
diff --git a/japanese/FreeWnn-server/files/patch-bg b/japanese/FreeWnn-server/files/patch-bg
new file mode 100644
index 000000000000..9bc269aeb834
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bg
@@ -0,0 +1,10 @@
+--- ../../../work/Xsi/cWnn/romkan/Imakefile Wed Aug 17 10:10:58 1994
++++ cWnn/romkan/Imakefile Tue Jan 5 22:23:33 1999
+@@ -2,6 +2,7 @@
+ XCOMM $Id: Imakefile,v 1.4 1994/08/17 01:10:58 kuwa Exp $
+ XCOMM
+ #define DoNormalLib YES
++#define DoSharedLib YES
+
+ #include <Library.tmpl>
+
diff --git a/japanese/FreeWnn-server/files/patch-bi b/japanese/FreeWnn-server/files/patch-bi
new file mode 100644
index 000000000000..d2de8dbb1316
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bi
@@ -0,0 +1,10 @@
+--- ../../../work/Xsi/kWnn/romkan/Imakefile Wed Aug 17 10:11:47 1994
++++ kWnn/romkan/Imakefile Tue Jan 5 22:57:27 1999
+@@ -2,6 +2,7 @@
+ XCOMM $Id: Imakefile,v 1.2 1994/08/17 01:11:47 kuwa Exp $
+ XCOMM
+ #define DoNormalLib YES
++#define DoSharedLib YES
+
+ #include <Library.tmpl>
+
diff --git a/japanese/FreeWnn-server/files/patch-bj b/japanese/FreeWnn-server/files/patch-bj
new file mode 100644
index 000000000000..6a171a63576c
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bj
@@ -0,0 +1,43 @@
+--- Wnn/pubdic/Imakefile.orig Tue Aug 23 11:21:30 1994
++++ Wnn/pubdic/Imakefile Thu Jan 7 13:41:56 1999
+@@ -96,11 +96,17 @@
+ instserver:: install
+
+ WnnMakeDirectories(install,$(JWNNDICDIR))
+-#if WnnInstallDicForcibly
++/*
++ * Bugfix.
++ * Because "NO" is same to "YES"!!
++ * And some additional bugfix.
++ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp) 1996/8/20
++ */
++#if (WnnInstallDicForcibly == YES)
+ InstallMultiple($(DIC),$(JWNNPUBDICDIR))
+
+ install::
+- @for i in $(DICS); \
++ @for i in $(DIC); \
+ do \
+ $(WNNTOUCH) $(DESTDIR)$(JWNNPUBDICDIR)/$$i ;\
+ done
+@@ -108,7 +114,20 @@
+ #else
+ WnnInstallDicMultiple($(DIC),$(JWNNPUBDICDIR))
+ #endif
++
++#if (WnnInstallDicForcibly == YES)
+ InstallMultiple($(FZKDATA),$(JWNNPUBDICDIR))
++
++install::
++ @for i in $(FZKDATA); \
++ do \
++ $(WNNTOUCH) $(DESTDIR)$(JWNNPUBDICDIR)/$$i ;\
++ done
++
++#else
++WnnInstallDicMultiple($(FZKDATA),$(JWNNPUBDICDIR))
++#endif
++
+ InstallMultiple($(FZK_SRC),$(JWNNFZKSRCDIR))
+
+ depend::
diff --git a/japanese/FreeWnn-server/files/patch-bk b/japanese/FreeWnn-server/files/patch-bk
new file mode 100644
index 000000000000..2c89d581df34
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bk
@@ -0,0 +1,21 @@
+By KATAYAMA Yoshio <kate@pfu.co.jp>
+
+--- Wnn/etc/pwd.c.ORG Tue Sep 22 13:29:26 1992
++++ Wnn/etc/pwd.c Mon Jan 25 13:14:27 1999
+@@ -68,7 +68,7 @@
+ char *src, *encd;
+ {
+ int i, x,c;
+- char xx[2];
++ char xx[3];
+ char *cr;
+
+ if(encd == NULL)encd = src;
+@@ -76,6 +76,7 @@
+ x = time(NULL);
+ xx[0] = x & 0x3f;
+ xx[1] = (x & 0x3f00) >> 8;
++ xx[2] = '\0'; /* for MD5 (that requires terminator) */
+ for (i = 0; i < 2; i++) {
+ c = xx[i] + '.';
+ if (c > '9')
diff --git a/japanese/FreeWnn-server/files/patch-bl b/japanese/FreeWnn-server/files/patch-bl
new file mode 100644
index 000000000000..4e20a1c280ec
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-bl
@@ -0,0 +1,47 @@
+By KATAYAMA Yoshio <kate@pfu.co.jp>
+
+--- Wnn/jserver/de_header.h.ORG Tue Jun 28 11:06:53 1994
++++ Wnn/jserver/de_header.h Sun Jan 24 14:45:58 1999
+@@ -240,6 +240,7 @@
+ extern int get4_cur();
+ extern int getc_cur();
+ extern void puts_cur();
++extern void puts_n_cur();
+ extern void putws_cur();
+ extern void putnws_cur();
+ extern void put2_cur();
+--- Wnn/jserver/do_dic_no.c.ORG Tue Sep 22 13:49:03 1992
++++ Wnn/jserver/do_dic_no.c Sun Jan 24 14:45:03 1999
+@@ -119,9 +119,9 @@
+ puts_cur(files[fid].name);
+ if(hfid >= 0) puts_cur(files[hfid].name);
+ else puts_cur("");
+- puts_cur(files[fid].passwd);
+- if(hfid >= 0) puts_cur(files[hfid].passwd);
+- else puts_cur(jtl->hpasswd);
++ puts_n_cur(files[fid].passwd, WNN_PASSWD_LEN);
++ if(hfid >= 0) puts_n_cur(files[hfid].passwd, WNN_PASSWD_LEN);
++ else puts_n_cur(jtl->hpasswd, WNN_PASSWD_LEN);
+ put4_cur(jtl->syurui);
+ put4_cur(jtl->gosuu);
+ put4_cur(files[fid].localf);
+--- Wnn/jserver/de.c.98-10-12 Mon Oct 12 01:01:28 1998
++++ Wnn/jserver/de.c Sun Jan 24 14:50:14 1999
+@@ -665,6 +665,17 @@
+
+ /** **/
+ void
++puts_n_cur(p,n)
++char *p;
++int n;
++{
++ register int c;
++ while((c = *p++) && --n >= 0) putc_cur(c);
++ putc_cur(0);
++}
++
++/** **/
++void
+ putws_cur(p)
+ w_char *p;
+ {