This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47007] New: Values from namelist file should not depend on locale settings
- From: "fenixk19 at mail dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 18 Dec 2010 19:04:20 +0000
- Subject: [Bug fortran/47007] New: Values from namelist file should not depend on locale settings
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47007
Summary: Values from namelist file should not depend on locale
settings
Product: gcc
Version: 4.4.5
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fenixk19@mail.ru
Namelist files can be generated on any platform with any locale settings. And
namelist files must be usable among this platforms. But today some data in
namelist files depends on locale settings, for example floating point format.
So when you try to open namelist file, generated on en_US locale in the
environment with ru_RU locale, for example, you get into trouble with reading
floating points values.
Namelist entry
DT=7.3000002E-011
is read as 7.3E-11 on en_US and as 7 in ru_RU.
Namelist should not depend on locale settings, so we can open namelist file
generated with any locale settings on any other locale settings, without
changing file and locale.