From owner-freebsd-bugs Fri Mar 27 09:50:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02056 for freebsd-bugs-outgoing; Fri, 27 Mar 1998 09:50:04 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02028; Fri, 27 Mar 1998 09:50:01 -0800 (PST) (envelope-from gnats) Received: from freebsd.ntu.edu.tw (freebsd.ntu.edu.tw [140.112.1.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA01400 for ; Fri, 27 Mar 1998 09:46:07 -0800 (PST) (envelope-from woju@freebsd.ntu.edu.tw) Received: (qmail 11635 invoked by uid 1000); 27 Mar 1998 17:49:37 -0000 Message-Id: <19980327174937.11634.qmail@freebsd.ntu.edu.tw> Date: 27 Mar 1998 17:49:37 -0000 From: woju@freebsd.ntu.edu.tw Reply-To: woju@freebsd.ntu.edu.tw To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/6144: telnet for 8-bit data path Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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