This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/47007] Values from namelist file should not depend on locale settings


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47007

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> 2010-12-19 02:14:40 UTC ---
On Sat, Dec 18, 2010 at 08:52:07PM +0000, burnus at gcc dot gnu.org wrote:
> 
> In order to use a decimal comma (and ";" as separator), one can use
> DECIMAL="comma" in the OPEN statement. (Won't work with internal list-directed
> or namelist I/O, which should thus always use to a ".".)
> 

The stndard disagrees with your 'thus always use to a "."'
See my first comment.  The standard says namelist IO will
use whatever current decimal separator is.  If locale sets
the default to ',', then that is what should be used unless
explicitly set by the user.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]