Date: Mon, 21 Jun 1999 12:58:50 +0800 (CST) From: Scott Hazen Mueller <scott@zorch.sf-bay.org> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/12317: fmt(1) not 8-bit-clean Message-ID: <199906210458.MAA03866@zorba.sf-bay.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906210458.MAA03866>
