This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57633] I/O: Problem with formatted read: reading CR-LF files (\r\n)
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jun 2013 08:55:19 +0000
- Subject: [Bug fortran/57633] I/O: Problem with formatted read: reading CR-LF files (\r\n)
- Auto-submitted: auto-generated
- References: <bug-57633-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57633
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|I/O: Problem with formatted |I/O: Problem with formatted
|read: reading an incomplete |read: reading CR-LF files
|record under Windows |(\r\n)
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
I can reproduce the issue using the following test file:
printf "line1,1,\r\nline2\r\nline3" > testcase.txt
It works if one has \n instead of \r\n