Subject: lib/8802: vis(3) does not correctly encode characters > 0177
To: None <gnats-bugs@netbsd.org>
From: Dr. Lex Wennmacher <wennmach@geo.Uni-Koeln.DE>
List: netbsd-bugs
Date: 11/14/1999 16:12:42
>Number:         8802
>Category:       lib
>Synopsis:       vis(3) does not correctly encode characters > 0177
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 14 16:12:00 1999
>Last-Modified:
>Originator:     Lex Wennmacher
>Organization:
Dr. Alexandre Wennmacher
Institut fuer Geophysik und Meteorologie         wennmach@geo.Uni-Koeln.DE
Universitaet zu Koeln                            phone  +49 221 470 - 3387
D-50923 Koeln                                    fax    +49 221 470 - 5198
>Release:        <NetBSD-current source date> NetBSD-1.4
>Environment:
	
System: NetBSD hal 1.4 NetBSD 1.4 (HAL) #5: Thu Nov 4 16:27:59 MET 1999 wennmach@hal:/usr/src/sys/arch/i386/compile/HAL i386


>Description:
	
vis(3) does not correctly encode characters > 0177 when the VIS_OCTAL
flag is set.
>How-To-Repeat:
	
vis(1) uses the vis(3) function. To set the VIS_OCTAL flag, the '- o' flag
is used.

% vis -o /netbsd
\000\606\001\013\000\760\020\000\000\700\000\000\654Y\002\000\654\037\001\000 \0
00\020\760\000\000\000\000\000\000\000\000f\707\005r\004\000\0004\022\613D ...

and wonder what \606 etc is.

>Fix:
	
I'm in the process of rewriting vis.c (to add strsvis and strsvisx) and will
fix the problem. I'll supply a patch for 1.4.2.
>Audit-Trail:
>Unformatted: