From scott@zorch.sf-bay.org Sun Jun 20 22:00:56 1999
Return-Path: <scott@zorch.sf-bay.org>
Received: from zorch.sf-bay.org (zorch.sf-bay.org [192.150.103.17])
	by hub.freebsd.org (Postfix) with ESMTP id BFD7414D41
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jun 1999 22:00:47 -0700 (PDT)
	(envelope-from scott@zorch.sf-bay.org)
Received: (from uucp@localhost) by zorch.sf-bay.org (8.8.8/8.8.2) with UUCP id WAA23922 for FreeBSD-gnats-submit@freebsd.org; Sun, 20 Jun 1999 22:00:20 -0700 (PDT)
Received: (from scott@localhost)
	by zorba.sf-bay.org (8.9.3/8.8.8) id MAA03866;
	Mon, 21 Jun 1999 12:58:50 +0800 (CST)
	(envelope-from scott)
Message-Id: <199906210458.MAA03866@zorba.sf-bay.org>
Date: Mon, 21 Jun 1999 12:58:50 +0800 (CST)
From: Scott Hazen Mueller <scott@zorch.sf-bay.org>
Reply-To: scott@zorch.sf-bay.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: fmt(1) not 8-bit-clean
X-Send-Pr-Version: 3.2

>Number:         12317
>Category:       bin
>Synopsis:       fmt(1) not 8-bit-clean
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 20 22:10:00 PDT 1999
>Closed-Date:    Mon Jun 21 05:12:08 PDT 1999
>Last-Modified:  Mon Jun 21 05:13:23 PDT 1999
>Originator:     Scott Hazen Mueller
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Individual
>Environment:

3.2-RELEASE and 2.2.8-RELEASE

>Description:

	fmt(1) removes "non-printable" characters, including ISO Latin1 128-255
    characters.

>How-To-Repeat:

    Snarf an 8-bit-text file from somewhere and run it through fmt.

>Fix:

The following inelegant patch simply comments out the offending test.  A more
elegant solution would continue to discard characters below 040 octal while
passing characters 177 and up.

	*** fmt.c	Sun Jun 20 21:53:17 1999
--- fmt.c.orig	Sun Jun 20 21:42:49 1999
***************
*** 211,220 ****
  				c = getc(fi);
  				continue;
  			}
! 	/*		if (!isprint(c) && c != '\t') {
  				c = getc(fi);
  				continue;
! 			} */
  			*cp++ = c;
  			c = getc(fi);
  		}
--- 211,220 ----
  				c = getc(fi);
  				continue;
  			}
! 			if (!isprint(c) && c != '\t') {
  				c = getc(fi);
  				continue;
! 			}
  			*cp++ = c;
  			c = getc(fi);
  		}


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Mon Jun 21 05:12:08 PDT 1999 
State-Changed-Why:  
Wrong direction. You must set up correct locale in environment. 
>Unformatted:
