re PR fortran/29277 (Formated stream output: Translate "\n" / achar(10) into "\r...
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 18 Oct 2006 04:04:07 +0000 (04:04 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Wed, 18 Oct 2006 04:04:07 +0000 (04:04 +0000)
commit09861cbee63a833e24b235a82432f2086f993624
tree32a8585b113c945c9bf5f0685a23c94df5622e73
parent6bc222ff7454812e7dd043f42b6724c283d3d689
re PR fortran/29277 (Formated stream output: Translate "\n" / achar(10) into "\r\n" on some platforms)

2006-10-17  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/29277
* io/list_read.c (next_char): Update strm_pos.
(eat_separator): Delete extra call to unget_char.
* io/transfer.c (read_block): Use read_sf for formatted stream I/O.
(next_record_r): Update strm_pos for formatted stream I/O and handle
end-of-record correctly.
(next_record_w): Ditto.
(next_record): Enable next record (r/w) functions and update strm_pos.
(finalize_transfer): Call next_record to finish the record.

From-SVN: r117846
libgfortran/ChangeLog
libgfortran/io/list_read.c
libgfortran/io/transfer.c