This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36378] Support Fortran files with \r line breaks
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2008 06:19:15 -0000
- Subject: [Bug fortran/36378] Support Fortran files with \r line breaks
- References: <bug-36378-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from kargl at gcc dot gnu dot org 2008-05-30 06:19 -------
(In reply to comment #1)
> This could be solved by judicious use of a good source code editor.
>
> Also, we could have the scanner insert a '/n' if a '/r' is found and peeking
> ahead does not find a '/n', assuming we are not between quotes in a literal
> string.
>
You don't need a good source code editor.
tr '\r' '\n' < infile > outfile
This should be closed with a WONTFIX.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36378