Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

FORTRAN input problem #334

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.write a FORTRAN program which contains a statement like 'READ*, A', it means 
read from keyboard and assign the value to A.
2.use gfortran under cygwin to compile it.
3.run the executive.

What is the expected output? What do you see instead?
the program may suspend until the user input a value. However, it ends directly 
: At line 99 of file ultimate.f90 (unit = 5, file = 'stdin')
Fortran runtime error: End of file

What versions of mintty, Cygwin/MSYS, and Windows are you using?
cygwin : 1.7.9-1
mintty : 1.0.1, 1.1-beta1
windows 7

Please provide any additional information below.
in FORTRAN language, 'unit = 5' means the keyboard
it runs well under rxvt

Original issue reported on code.google.com by Jupiter...@gmail.com on 9 May 2012 at 10:03

GoogleCodeExporter commented 8 years ago
Please attach a source file that exhibits the issue, along with instructions on 
how to build and run it.

Original comment by andy.koppe on 9 May 2012 at 11:26

GoogleCodeExporter commented 8 years ago
This is a f90 source file:
------------hello.f90---------------
program main
  integer :: a
  read*,a
  print*, 'You have input :',a
endprogram main

Original comment by Jupiter...@gmail.com on 9 May 2012 at 11:58

Attachments:

GoogleCodeExporter commented 8 years ago
1.build instruction:
    $gfortran hello.f90
2.run it:
    $./a.exe

Original comment by Jupiter...@gmail.com on 9 May 2012 at 12:02

GoogleCodeExporter commented 8 years ago
Thanks. The test works fine for me, using cygwin-1.7.14 and any of mintty 
1.0.1, 1.0.3 and 1.1-beta1. Therefore I suspect any problem here is either with 
the Cygwin DLL or Fortran itself, and that it has since been fixed. So please 
try updating Cygwin (or a new install to a different directory).

Original comment by andy.koppe on 9 May 2012 at 7:32

GoogleCodeExporter commented 8 years ago
Thank you. After updating my Cygwin, I find the problem solved.

Original comment by Jupiter...@gmail.com on 10 May 2012 at 8:41

GoogleCodeExporter commented 8 years ago
Glad that did it. Thanks for reporting back.

Original comment by andy.koppe on 10 May 2012 at 12:18