This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20179] cannot mix C and Fortran I/O
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2005 22:09:35 -0000
- Subject: [Bug libfortran/20179] cannot mix C and Fortran I/O
- References: <20050223193435.20179.stevenj@fftw.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fxcoudert at gcc dot gnu dot org 2005-05-22 22:09 -------
As a reply to comment 2: this is indeed a problem of mixing unix-style and
C-style I/O, but not mmap ones (this was a different PR, fixed some time ago
now: mmap is not used on standard input, output and error).
Consider the following (program given in bug-report compiled as indicated):
$ ./a.out
foo
bar
$ ./a.out | cat
$ GFORTRAN_STDOUT_UNIT=-1 ./a.out | cat
foo
bar
$ echo `./a.out`
$ echo `GFORTRAN_STDOUT_UNIT=-1 ./a.out`
foo bar baz
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Last reconfirmed|2005-02-27 18:18:51 |2005-05-22 22:09:34
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20179