wsy2220 / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

Unix EOL in stdout on Windows #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When linking both C and Fortran code under Windows, using gcc 4.6.1, EOL style 
in both stdout and stderr becomes that of Unix. Probably this is due to 
automatic change of write mode for this streams to binary by gfortran (even 
when Fortran code has nothing to do with i/o at all). The same may happen to 
stdin, but this is hard to test.

This is not a big problem, but is unpleasant when doing diffs of produced 
stdout. I have submitted a bug to mingw32 forum 
http://sourceforge.net/tracker/?func=detail&atid=102435&aid=3440369&group_id=243
5 , but it is not clear if this bug is even accepted by the developers. 
Meanwhile, some workarounds need to be implemented.

Original issue reported on code.google.com by yurkin on 22 Nov 2011 at 5:21

GoogleCodeExporter commented 9 years ago
Workaround has been implemented by r1082, though it will cause warnings when 
compiling in mingw64 using -std=c99. Not a lot we can do for now.

Original comment by yurkin on 22 Nov 2011 at 5:28