This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41328] [4.4 regression] bad iostat when reading DOS file in a character array (non-advancing)
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2009 17:21:35 -0000
- Subject: [Bug fortran/41328] [4.4 regression] bad iostat when reading DOS file in a character array (non-advancing)
- References: <bug-41328-18174@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from jvdelisle at gcc dot gnu dot org 2009-09-19 17:21 -------
Subject: Bug 41328
Author: jvdelisle
Date: Sat Sep 19 17:21:20 2009
New Revision: 151883
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151883
Log:
2009-09-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
Backport from mainline:
PR libgfortran/41328
* io/transfer.c (read_sf): Adjust fbuf position and do proper fbuf
reads
to traverse CR, CR-LF, and LF style line ends.Set at_eof flag on short
read if any characters were successfully read so that EOF condition
with
no EOR marker succeeds.
Modified:
branches/gcc-4_4-branch/libgfortran/ChangeLog
branches/gcc-4_4-branch/libgfortran/io/transfer.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41328