[comp.windows.news] Bugs in NeWS

siegel@hc.DSPO.GOV (Josh Siegel) (02/01/88)

The following is a list of ways of getting the NeWS to
get sick.  These are all for NeWS 1.1 and hopefully will be
fixed before it is released.  On the other hand,  if they
don't get fixed, these will help people see the bugs quickly
instead of having to track them down themselves.

Also, for all those NeWS haters, the coming version of NeWS
is just a whole bunch more hardy.  It is harder to crash
then just a whole bunch of the previous versions.  In general,
it is worth buying when they release it.

==================================

% This dumps news  (causes core dump)

initmatrix
/Times-Roman findfont 1 scalefont setfont
145023 346012 scale
-234523 -2345234 translate
-1239 -1425 moveto
(hello) show

% This shows bug in gsave
%   
%  notice how the resulting like goes from 0,0 instead of 50,10

initmatrix
50 10 moveto
gsave
0 0 moveto
grestore
100 100 lineto
stroke

%  Bug in color text code (note, this is for a B/W system)
%
%  The color of the text is always black all the way until
%  one of the colors is white, then it changes to pure
%  white.  It isn't intensity driven or dithered.  This is
%  a questionable bug... just it is painful to deal with.

initmatrix
20 20 moveto .2 .0 .0 rgbcolor (hello) show
30 30 moveto .3 .0 .0 rgbcolor (hello) show
40 40 moveto .4 .0 .0 rgbcolor (hello) show
50 50 moveto .5 .0 .0 rgbcolor (hello) show
60 60 moveto .6 .0 .0 rgbcolor (hello) show
70 70 moveto .7 .0 .0 rgbcolor (hello) show
80 80 moveto .8 .0 .0 rgbcolor (hello) show
90 90 moveto .9 .0 .0 rgbcolor (hello) show
100 100 moveto 1 .0 .0 rgbcolor (hello) show

% This dump news
currentprocess suspendprocess

% This kills psterm.  Do it from a psh or just do a
% echo "^[\\"
% Note, the ^[ is a escape

(^[\\) print
1 ==		% the 1 == is just to flush the print buffer

% we have a fix for this (for the beta version of psterm) if you want it.

% The reason this comes up is due to VMS sending this escape
% sequence at one point.  Also, we (my office mate and I)
% have written a vt100 tool that works well with VMS.  I will
% post this at some point and am happy to send the current copy
% to people who ask.

% This shows bug in text routines

initmatrix
50 50 moveto
500 500 scale
(hello) show

% Only the H is printed!

% Bug in network security!!!

localhostname ==

% This returns the name of the machine as set by hostname().
% Problem is that getsocketpeername returns on some machines
% a fully qualified hostname.  They DON'T match..
% a example is that zuni != zuni.dspo.gov.  We had to go
% into init.ps and turn NetSecurityWanted off by default.

==================================
-- 
Josh Siegel		(siegel@hc.dspo.gov)
I like using a C-47A "puff dragon" to go hunting with.