Hi all,
The patches are applied on FreeBSD ports (but only specialized to
Japanese one). The one is specialized to FreeBSD, and the another one
is not. I hope to merge those to next release of the rxvt.
BTW, KANJI is never defined, therefore TERMENV is always defined to
"xterm". Surely, the patch fixes it, but still exists a problem that
is not changed the TERMENV dynamically based on locale settings.
However, I have no trouble handling Japanese on rxvt with the
environment TERM is "xterm" on FreeBSD, NetBSD and Solaris. I suggest
to remove #ifndef TERMENV ... #endif in rxvt.h.
Or any idea?
Thanks,
-----
Kazutoshi Kubota <[EMAIL PROTECTED]>,
and the old one <[EMAIL PROTECTED]>
======================================================================
--- rxvt.h.orig Thu Jun 27 13:08:45 2002
+++ rxvt.h Thu Jun 27 13:13:29 2002
@@ -158,7 +158,7 @@
# define COLORTERMENVFULL COLORTERMENV
#endif
#ifndef TERMENV
-# ifdef KANJI
+# if MULTICHAR_ENCODING == EUCJ || MULTICHAR_ENCODING == SJIS
# define TERMENV "kterm"
# else
# define TERMENV "xterm"
--- ptytty.c.orig Thu Jun 27 13:13:37 2002
+++ ptytty.c Thu Jun 27 13:17:37 2002
@@ -165,7 +165,11 @@
char tty_name[] = "/dev/tty??";
# define PTYCHAR1 "pqrstuvwxyz"
-# define PTYCHAR2 "0123456789abcdef"
+# if defined(__FreeBSD__)
+# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv"
+# else
+# define PTYCHAR2 "0123456789abcdef"
+# endif
for (c1 = PTYCHAR1; *c1; c1++) {
pty_name[(sizeof(pty_name) - 3)] =
tty_name[(sizeof(pty_name) - 3)] = *c1;
======================================================================