Library bugs closed in 2007.
These are bugs fixed in 602d beta and library 6.02.009. You may also see the outstanding bugs.
Contents
Gaussian elimination inconsistences
The verb gauss_elimination defined in ~system/packages/math/linear.ijs returns 3 items: the verbs lud and qrd from ~system/packages/math/matfacto.ijs expect it to return 2 items. For example,
require '~system/packages/math/matfacto.ijs' gauss_elimination i. 2 2 +---+---+---+ |2 3|1 0|0 1| |0 1| | | +---+---+---+ lud i. 2 2 |length error: lud | 'a b' =.gauss_elimination y,.ir
-- JohnRandall 2007-01-09 20:42:22
Find fails on Unicode .ijs
I was using Find (name only) on jijs.ijs . It died with an error in jfiw_findtop_button. Research showed that jregexec was getting a domain error 6 1. The argument causing the problem was the text from jijs.ijs, which showed a type of 131072.
win32api.dat corrections
I think the win32api.dat in the current j6.01 base library has the following definition errors:
kernel32 GetPrivateProfileStringA i *c i *c *c i *c
Should be
kernel32 GetPrivateProfileStringA i *c *c *c *c i *c
http://msdn2.microsoft.com/en-us/library/ms724353.aspx
and ...
kernel32 WritePrivateProfileStringA i *c i i *c
Should be
kernel32 WritePrivateProfileStringA i *c *c *c *c
http://msdn2.microsoft.com/en-us/library/ms725501.aspx
Could also add
kernel32 GetPrivateProfileSectionNamesA i *c i *c
-- RicSherlock 2007-08-15 12:21:58
Logic bug in ftype
The ftype verb in the files system library script has a logic bug that causes an index error for the case where a non-existing directory path ending with a path separator is given.
ftype jpath '~system'
2
ftype (jpath '~system'),PATHSEP_j_
2
ftype (jpath '~system\notexist')
0
ftype (jpath '~system\notexist'),PATHSEP_j_
|index error: ftype
| 2*'d'=4{>4 {,dA not particularly elegant solution is as follows:
ftype=: 3 : 0
d=. 1!:0 fboxname y
if. #d do.
>: 'd' = 4 { > 4 { ,d
elseif. PATHSEP_j_ = {: ucp y do.
d=. 1!:0 fboxname }: ucp y
if. #d do.
2 * 'd' = 4 { > 4 { ,d
else.
0
end.
elseif. do.
0
end.
)Perhaps even more tersely:
ftype=: 3 : 0
d=. 1!:0 fboxname (}:^:(PATHSEP_j_={:)) ucp y
if. #d do.
>: 'd' = 4 { > 4 { ,d
else. 0 end.
)-- RicSherlock 2007-10-04 01:09:40
RGB Triples Flipped by ''writebmp''
In J6.01, when saving the graphic generated by "viewmat" to the file named by "flnm", e.g.:
writebmp_jviewmat_ flnm
the resulting bitmap has its RGB triples flipped, i.e. red is blue and blue is red.
A fix is to change the last line of "writebmp" (defined in "~system\classes\view\viewmat.ijs") from
(getbmp'') writebmp fl
to something like
(|."_2(3$256)#:getbmp'') writebmp fl
-- DevonMcCormick 2007-10-04 15:27:30
pdfwrite in jzplot.ijs doesn't handle spaces in file name
This causes errors in the Plot demo when J is installed to a path including spaces.
Changing line 5175 of jzplot.ijs (pdfwrite verb) from
- {{{ wd 'winexec *',PDFREADER_j_,' ',file
}}} to
- {{{ wd 'winexec *',PDFREADER_j_,' "',file,'"'
}}} enables plot.pdf to open correctly in my specified PDF reader.
-- RicSherlock 2007-10-05 01:40:01
Plot Demo PDF creation errors
The following demo plots cause errors in J when I choose File | Save PDF
2D | Symbol
Gallery | Curve Fitting
In both cases the error is: {{{domain error: u2a txt=. u2a each txt}}}
PDFs of the following demo plots display incorrectly in Adobe Reader 8.1.0
2D | Radar - dark grey circle underneath plotted series
3D | Wire - displays blank grey page
Gallery | Wire - displays blank black page
Styles | Plot Sampler -last 3 plots do not display (3rd to last plot is same as 3D | Wire)
If I open the last three plots from the previous list in Adobe Acrobat Professional 7.0.9, the following error message is displayed: There were too many color components.
The errors above occur in both J601 & J602
-- RicSherlock 2007-10-05 01:40:01
no context-help for M.
I reported this on System/Beta, but I am not sure anyone keeps an eye on that page, so I'm leaving a pointer here.
-- DanBron 2007-10-29 14:03:42
Text decoration prevents Jwdp starting
If the color configuration in a jwdw session is defined to include text decoration of any kind (italics or underline), then a jwdp session using that same profile will no longer start (javaw.exe does appear briefly in Task Manager and then disappears again). Editing the configuration to remove the text decoration restores jwdp functionality. First reported in the forums - general/2007-June/030408
-- RicSherlock 2007-11-04 21:47:56
