From owner-freebsd-bugs Sun Jun 20 22:10: 6 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9E45E14FEF for ; Sun, 20 Jun 1999 22:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id WAA37143; Sun, 20 Jun 1999 22:10:00 -0700 (PDT) (envelope-from gnats@FreeBSD.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 ; 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 Reply-To: scott@zorch.sf-bay.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/12317: fmt(1) not 8-bit-clean Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12317 >Category: bin >Synopsis: fmt(1) not 8-bit-clean >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 20 22:10:00 PDT 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message