This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29277] Formated stream output: Translate "\n" / achar(10) into "\r\n" on some platforms
- 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: 9 Oct 2006 03:07:17 -0000
- Subject: [Bug fortran/29277] Formated stream output: Translate "\n" / achar(10) into "\r\n" on some platforms
- References: <bug-29277-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2006-10-09 03:07 -------
Created an attachment (id=12398)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12398&action=view)
Preliminaey patch for STREAM formatted read.
There is a related problem with formatted stream read:
program stream
implicit none
character(len=50) :: r1,r2
open(10,file='test.dat',form='formatted',access='stream',status='old')
read(10,'(a)') r1
read(10,'(a)') r2
print *, ':',trim(r1),':'
print *, ':',trim(r2),':'
end program stream
I have a preliminary patch for this that I would appreciate some testing on
cygwin or other CR-LF type system. This is for the read only.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29277