Subject: bin/7167: tr(1) gets uses isupper() for :print:
To: None <gnats-bugs@gnats.netbsd.org>
From: None <soren@t.dk>
List: netbsd-bugs
Date: 03/16/1999 03:09:24
>Number: 7167
>Category: bin
>Synopsis: tr(1) gets uses isupper() for :print:
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 15 18:20:01 1999
>Last-Modified:
>Originator: Soren S. Jorvang
>Organization:
Soren
>Release: NetBSD-current 19990315
>Environment:
System: NetBSD 1.3K
>Description:
str.c appears to suffer from a pasto that fouls up [:print:].
>How-To-Repeat:
Try to get sane input using tr -cd [:print:].
>Fix:
--- src/usr.bin/tr/str.c.orig Tue Mar 16 03:00:30 1999
+++ src/usr.bin/tr/str.c Tue Mar 16 03:00:32 1999
@@ -166,7 +166,7 @@
{ "digit", isdigit, },
{ "graph", isgraph, },
{ "lower", islower, },
- { "print", isupper, },
+ { "print", isprint, },
{ "punct", ispunct, },
{ "space", isspace, },
{ "upper", isupper, },
>Audit-Trail:
>Unformatted: