Thanks David for tracking it down. I haven't a chance to build jandroid for
quite a while.

On Thu, Sep 20, 2018, 7:08 PM David Mitchell <[email protected]> wrote:

> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to