public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/36378] New: Support Fortran files with \r line breaks @ 2008-05-29 18:38 burnus at gcc dot gnu dot org 2008-05-30 4:22 ` [Bug fortran/36378] " jvdelisle at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: burnus at gcc dot gnu dot org @ 2008-05-29 18:38 UTC (permalink / raw) To: gcc-bugs A college of mine recently struggled compiling some Fortran files and it turned out that they used (old) Mac line breaks, i.e. \r instead of Unix \n or Windows \r\n. (I have not checked how difficult it is to support this.) Analogously, one could think of supporting \r line breaks in libgfortran, but I think this will open Pandora's box. (Maybe the same is also true for the Front end.) -- Summary: Support Fortran files with \r line breaks Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36378 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/36378] Support Fortran files with \r line breaks 2008-05-29 18:38 [Bug fortran/36378] New: Support Fortran files with \r line breaks burnus at gcc dot gnu dot org @ 2008-05-30 4:22 ` jvdelisle at gcc dot gnu dot org 2008-05-30 6:19 ` kargl at gcc dot gnu dot org 2009-01-04 0:04 ` dfranke at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: jvdelisle at gcc dot gnu dot org @ 2008-05-30 4:22 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jvdelisle at gcc dot gnu dot org 2008-05-30 04:21 ------- 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. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36378 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/36378] Support Fortran files with \r line breaks 2008-05-29 18:38 [Bug fortran/36378] New: Support Fortran files with \r line breaks burnus at gcc dot gnu dot org 2008-05-30 4:22 ` [Bug fortran/36378] " jvdelisle at gcc dot gnu dot org @ 2008-05-30 6:19 ` kargl at gcc dot gnu dot org 2009-01-04 0:04 ` dfranke at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: kargl at gcc dot gnu dot org @ 2008-05-30 6:19 UTC (permalink / raw) To: gcc-bugs ------- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/36378] Support Fortran files with \r line breaks 2008-05-29 18:38 [Bug fortran/36378] New: Support Fortran files with \r line breaks burnus at gcc dot gnu dot org 2008-05-30 4:22 ` [Bug fortran/36378] " jvdelisle at gcc dot gnu dot org 2008-05-30 6:19 ` kargl at gcc dot gnu dot org @ 2009-01-04 0:04 ` dfranke at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: dfranke at gcc dot gnu dot org @ 2009-01-04 0:04 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from dfranke at gcc dot gnu dot org 2009-01-04 00:04 ------- Following Steve's suggestion. Closing as WONTFIX. -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36378 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-04 0:04 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-05-29 18:38 [Bug fortran/36378] New: Support Fortran files with \r line breaks burnus at gcc dot gnu dot org 2008-05-30 4:22 ` [Bug fortran/36378] " jvdelisle at gcc dot gnu dot org 2008-05-30 6:19 ` kargl at gcc dot gnu dot org 2009-01-04 0:04 ` dfranke at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).