2008-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/36202
* io/list_read (eat_separator): Handle the CR-LF case correctly.
From-SVN: r135177
+2008-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR libfortran/36202
+ * io/list_read (eat_separator): Handle the CR-LF case correctly.
+
2008-05-09 Julian Brown <julian@codesourcery.com>
* Makefile.am (LTLDFLAGS): New.
case '\r':
dtp->u.p.at_eol = 1;
n = next_char(dtp);
- if (n == '\n')
+ if (n != '\n')
{
- if (dtp->u.p.namelist_mode)
- {
- do
- c = next_char (dtp);
- while (c == '\n' || c == '\r' || c == ' ');
- unget_char (dtp, c);
- }
+ unget_char (dtp, n);
+ break;
}
- else
- unget_char (dtp, n);
- break;
-
+ /* Fall through. */
case '\n':
dtp->u.p.at_eol = 1;
if (dtp->u.p.namelist_mode)