Thanks for a great bug report.  There was indeed a bug (at least one), which
I've just fixed in the CVS sources.  The read buffer was being accidentally
flushed as a write buffer by the hClose.  I'm still not quite sure why this
caused the file to grow, however.

Workaround: don't use ReadWriteMode to open files if possible.

Cheers,
        Simon

Reply via email to