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.
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?
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
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
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
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