Karim Belabas on Fri, 01 Oct 2004 18:35:11 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Bug in writebin/read


* Gonzalo Tornaria [2004-09-29 18:06]:
> -----------------------------------------------------------------------
>          GP/PARI CALCULATOR Version 2.2.8 (development CHANGES-1.1021)
>                 i686 running linux (ix86 kernel) 32-bit version
>                compiled: Sep 29 2004, gcc-3.3.3 (Debian 20040401)
>                 (readline v4.3 enabled, extended help available)
> [...]
> parisize = 128000000, primelimit = 10000000
> ? a=0
> %1 = 0
> ? writebin("a0",a)
> ? read("a0")
>   *** read: malformed binary file (no GEN).
> -----------------------------------------------------------------------
> 
> This happens only for variables set to 0; the file "a0" doesn't exist
> before doing this. An hexdump of a0 follows:

An oversight of mine: you couldn't store an exact '0' [ by itself ] in a
'binary' GP file. It should be fixed in CVS now.

Thanks!

    Karim.

P.S: Btw, the preferred way to report bugs is to use our Bug Tracking
System at

  http://pari.math.u-bordeaux.fr/Bugs/

(this way it's much easier for us to track of things...).
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dep. de Mathematiques, Bat. 425   Fax: (+33) (0)1 69 15 60 19
Universite Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://pari.math.u-bordeaux.fr/  [PARI/GP]