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