[Bug fortran/61847] bug in gfortran runtime on OSX: digits cut off when reading floating point number

2014-07-21 Thread e2cd58e1 at opayq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847 --- Comment #3 from e2cd58e1 at opayq dot com --- but what I want to do is read in values with point as decimal separator. Using open(unit=1,file='bug.dat', decimal=point) doesn't seem to change anything.

[Bug fortran/61847] bug in gfortran runtime on OSX: digits cut off when reading floating point number

2014-07-21 Thread e2cd58e1 at opayq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847 --- Comment #5 from e2cd58e1 at opayq dot com --- I actually don't know - how can I test this? But either way, shouldn't open(unit=1,file='bug.dat', decimal=point) read 1.234 in as 1.234 no matter what the locale settings are?

[Bug fortran/61847] bug in gfortran runtime on OSX: digits cut off when reading floating point number

2014-07-21 Thread e2cd58e1 at opayq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847 --- Comment #7 from e2cd58e1 at opayq dot com --- For printf(Test 1 = %.4f\n,strtod(1.2345,NULL)); printf(Test 2 = %.4f\n,strtod(1,2345,NULL)); I get Test 1 = 1, Test 2 = 1,2345

[Bug fortran/61847] bug in gfortran runtime on OSX: digits cut off when reading floating point number

2014-07-21 Thread e2cd58e1 at opayq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847 --- Comment #9 from e2cd58e1 at opayq dot com --- Just what I get: 1.2345 = 1.2345 and 5,4321 = 5. 1.2345 = 1, and 5,4321 = 5,4321

[Bug fortran/61847] bug in gfortran runtime: digits cut off when reading floating point number

2014-07-21 Thread e2cd58e1 at opayq dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847 --- Comment #12 from e2cd58e1 at opayq dot com --- Sorry but I still have a problem with this, maybe I didn't get what you are saying or I wasn't clear enough. Suppose I cannot change the C-wrapper and the locale might be set to whatever

[Bug fortran/61847] New: bug in gfortran runtime on OSX: digits cut off when reading floating point number

2014-07-18 Thread e2cd58e1 at opayq dot com
Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: e2cd58e1 at opayq dot com Created attachment 33154 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33154action=edit source code Reading a floating point number