re PR fortran/41328 (bad iostat when reading DOS file in a character array (non-advancing))
2009-09-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/41328 * io/transfer.c (read_sf): Set at_eof flag on short read if any characters were successfully read so that EOF condition with no EOR marker succeeds. From-SVN: r151877
This commit is contained in:
parent
70e4295998
commit
bf187ce8be
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2009-09-18 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libgfortran/41328
|
||||
* io/transfer.c (read_sf): Set at_eof flag on short read if any
|
||||
characters were successfully read so that EOF condition with no EOR
|
||||
marker succeeds.
|
||||
|
||||
2009-09-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||
|
||||
PR libgfortran/41328
|
||||
|
|
|
@ -291,7 +291,7 @@ read_sf (st_parameter_dt *dtp, int * length, int no_error)
|
|||
some other stuff. Set the relevant flags. */
|
||||
if (lorig > *length && !dtp->u.p.sf_seen_eor && !seen_comma)
|
||||
{
|
||||
if (no_error)
|
||||
if (n > 0 || no_error)
|
||||
dtp->u.p.at_eof = 1;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue