This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/36378] Support Fortran files with \r line breaks



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]