David, please test if one the following line change is ok.
Thanks.

> while. 0{:: 'c h d nd'=. (libz,' gzread cv,' i x *c i') cd h;d;#d do.

Чт, 20 сен 2018, David Mitchell написал(а):
> I have been working on a j807 build using Android Studio.  One problem I
> found was in Package Manager.  The initial package manager load failed with
> 
> assertion failure: tarx
> 100>#name
> 
> This was caused by the fread of the un-gzipped file here:
> 
> refreshjal
> 'rc p'=. httpget WWW,zipext 'jal'
> if. rc do. 0 return. end.
> unzip p;ADDCFG
> ...
> tar
> (gzip f) fwrite fz
> 
> tarx
> d=. fread file
> ===
> The file read by tarx was all blank characters.
> 
> This change to gzip worked for me:
> 
> d=. (128*1024)$' '
> h=. gzopen y;'rb'
> while. c=. (libz,' gzread >',cv,' i x *c i') cd h;d;#d do.
>   assert. _1~:c
>   r=. r,c{.d
> end
> 
> went to
> 
> d=. (128*1024)$' '
> h=. gzopen y;'rb'
> while. 1 do.
>   'c1 c2 c3 c4'=. (libz,' gzread ',cv,' i x *c i') cd h;d;#d
>   if. c1 = 0 do. break. end.
>   assert. _1~:c1
>   r=. r,c1{.c3
> end.
> 
> David Mitchell
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to