[Bug libfortran/22570] Null Characters instead of blanks in t extoutput

THOMAS Paul Richard 169137 prthomas@drfccad.cea.fr
Thu Jul 21 13:37:00 GMT 2005


Steven,

> On Thursday 21 July 2005 12:11, Steven Bosscher wrote:
> > Thanks for your efforts.  Sadly these patches still do not 
> fix mgrid :-(

The thanks are mine for bearing with me!  During an out-of-body experience
during a meeting, I understood the 4th(!) problem.

All the test cases consisted, one way or another, of a single record.
Whilst, the position counters were being reset at the start of a transfer,
they were not being rest after each record.

The enclosed patch runs each of your testcases, for which thanks, and has
been regtested on Cygwin_NT.

To recapitulate:

The four buglets that I have fixed are:

(1) The receipt of a slash should clear the pending skips and spaces(last
night's patch);
(2) The skips and spaces need to accumulate to cope with sequences of tabs
and X-edits,
as mentioned and tested this morning; and
(3) The function read.c(read_x)must ignore current_unit->bytes_left, except
where the
record length is known.
(4) Make sure the position counters are reset for a new record.

I will incorporate these four fixes into one patch and provide one or,
possibly, two test cases.

You are absolutely right.  Our testsuite is proving to be completely
inadequate for the wide variety of variations that can be encountered in
practice.  Whilst I will provide test cases, I will also review what F77 is
lacking from NIST and write an automated driver for NIST + whatever is
necessary.

Regards

Paul T


-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib_io.diff
Type: application/octet-stream
Size: 7783 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050721/cff82376/attachment.obj>


More information about the Fortran mailing list