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] New: Values from namelist file should not depend on locale settings


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.


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