Date: 27 Mar 1998 17:49:37 -0000 From: woju@freebsd.ntu.edu.tw To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/6144: telnet for 8-bit data path Message-ID: <19980327174937.11634.qmail@freebsd.ntu.edu.tw>
index | next in thread | raw e-mail
>Number: 6144
>Category: bin
>Synopsis: telnet for 8-bit data path
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 27 09:50:00 PST 1998
>Last-Modified:
>Originator: woju
>Organization:
National Taiwan University
>Release: FreeBSD 2.2.5-STABLE i386
>Environment:
FreeBSD 2.2.5-STABLE #0: Thu Feb 26 13:15:52 CST 1998
CPU: AMD-K6tm w/ multimedia extensions (199.90-MHz 586-class CPU)
Origin = "AuthenticAMD" Id = 0x562 Stepping=2
Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory = 134217728 (131072K bytes)
>Description:
Using /usr/bin/telnet in "8-bit environment", for example, BIG5-
encoding Chinese characters environment in Taiwan, is somewhat in-convenient.
To be able to input Chinese characters, "-8 or -L" options are needed,
however, using these options cause another problem. Specifying "-8 or -L"
makes ^U or ^C or ^D or ... (any isprint(c)) malfunction when telnet to SunOS.
>How-To-Repeat:
/usr/bin/telnet -8 ms1.hinet.net (ms1.hinet.net running Solaris)
login: abcde^U (or just press Enter)
=> the terminal state goes wrong, "reset" is needed to go back
to "normal state"
>Fix:
Apply the following patch:
(gopher://freebsd.csie.nctu.edu.tw:70/00/Chinese/telnet)
This make telnet "8-bit clean", being able to input 8-bit data (Chinese
characters) without specifying "-8 or -L" options, and telnet to SunOS
without trouble.
ntubsd[woju]:/usr/src/usr.bin$ diff -u telnet/sys_bsd.c.orig telnet/sys_bsd.c
--- telnet/sys_bsd.c.orig Sat Mar 28 00:54:30 1998
+++ telnet/sys_bsd.c Sat Mar 28 00:56:13 1998
@@ -593,10 +593,7 @@
else
lmode &= ~LPASS8;
#else
- if (f & MODE_INBIN)
- tmp_tc.c_iflag &= ~ISTRIP;
- else
- tmp_tc.c_iflag |= ISTRIP;
+ tmp_tc.c_iflag &= ~ISTRIP;
if (f & MODE_OUTBIN) {
tmp_tc.c_cflag &= ~(CSIZE|PARENB);
tmp_tc.c_cflag |= CS8;
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980327174937.11634.qmail>
