------- Comment #1 from jvdelisle at gcc dot gnu dot org 2006-09-28 23:23 ------- Please note that with formatted stream I/O we implicitly write a /n or /r/n in the next_record_w () function in transfer.c depending on the system. I think this meets the intent.
Now an issue I see is what if we want to explicitly write a /n on this system? There would be no way to do that if we translate it to /n/r. I am not sure the intent of the committee was to restrict this in this way, but allow it in the case of formatted end of record. I have not tried this, but if I write out a formatted string with one character /n I wonder if we we get /n/r/n with current gfortran. I am not agreeing or diagreeing here. You have raised a good question here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29277