From davidyu@Jaky.m6.ntu.edu.tw  Tue Aug  4 10:10:09 1998
Received: from Jaky.m6.ntu.edu.tw (Jaky.m6.ntu.edu.tw [140.112.247.130])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA12442
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 4 Aug 1998 10:10:04 -0700 (PDT)
          (envelope-from davidyu@Jaky.m6.ntu.edu.tw)
Received: (from root@localhost)
	by Jaky.m6.ntu.edu.tw (8.8.8/8.8.5) id BAA19945;
	Wed, 5 Aug 1998 01:13:35 +0800 (CST)
Message-Id: <199808041713.BAA19945@Jaky.m6.ntu.edu.tw>
Date: Wed, 5 Aug 1998 01:13:35 +0800 (CST)
From: davidyu@snoopy.csie.ntu.edu.tw
Reply-To: davidyu@snoopy.csie.ntu.edu.tw
To: FreeBSD-gnats-submit@freebsd.org
Subject: Patch for 8-bit clean talk(1)
X-Send-Pr-Version: 3.2

>Number:         7492
>Category:       bin
>Synopsis:       Patch for 8-bit clean talk(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug  4 10:20:01 PDT 1998
>Closed-Date:    Tue Aug 4 12:16:29 PDT 1998
>Last-Modified:  Tue Nov 27 19:25:50 PST 2001
>Originator:     David Yu
>Release:        FreeBSD 2.2.7-STABLE i386
>Organization:
NTU CSIE
>Environment:

FreeBSD Jaky.m6.ntu.edu.tw 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Sat Jul 25 07:1
6:41 CST 1998     root@Jaky.m6.ntu.edu.tw:/usr/src/sys/compile/DESKTOP  i386

>Description:

	The current version of talk(1) isn't 8bit clean, so that it's
	very inconvienent for CJK users.
	we hope you could commit the following patch in both -current and
	-stable. thanks.

>How-To-Repeat:

>Fix:
	
--- display.c.orig	Wed Aug  5 01:02:34 1998
+++ display.c	Wed Aug  5 01:03:07 1998
@@ -146,13 +146,7 @@
 			text++;
 			continue;
 		}
-		if (!isprint((unsigned char)*text) && *text != '\t') {
-			waddch(win->x_win, '^');
-			getyx(win->x_win, win->x_line, win->x_col);
-			cch = (*text & 63) + 64;
-			waddch(win->x_win, cch);
-		} else
-			waddch(win->x_win, (unsigned char)*text);
+		waddch(win->x_win, (unsigned char)*text);
 		getyx(win->x_win, win->x_line, win->x_col);
 		text++;
 	}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Tue Aug 4 12:16:29 PDT 1998 
State-Changed-Why:  
Talk *is* 8bit clean but not 16bit clean. More efforts need to make it 16bit clean. 
Hack you sent is not make it 16bit clean in anycase. Wide char support must be fully activated instead. 
>Unformatted:
