gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] IOChan.RawRead() returns fewer bytes than available


From: Gaius Mulley
Subject: Re: [Gm2] IOChan.RawRead() returns fewer bytes than available
Date: Thu, 25 Feb 2010 15:46:11 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

SiTex Graphics <address@hidden> writes:

> Hi Gaius,
>
> The RawRead() function in GM2 exhibits some unexpected behavior
> compared to the XDS and Stonybrook versions.  RawRead() sometimes
> returns fewer than the number of bytes requested even when there are
> more bytes remaining in the file.  I've attached a simple test module
> which tries to read a file named test.dat.  Compile with
>
> gm2 -fiso -fmakeall -o readtest readtest.mod
>
> Every 16000-30000 bytes there is a short read.  I'm not sure if this
> is a bug (does the ISO spec address this?), but it is unexpected.  I
> have my own wrappers for all the file IO functions, and coding around
> this behavior was simple enough once I discovered what was
> happening.

Hi Scott,

thanks for the report - the standard doesn't mention short reads - so
I suspect it should not happen.  I've fixed this now in the latest
cvs,

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]