https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61847
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #33227|0 |1 is obsolete| | --- Comment #20 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 33858 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33858&action=edit Proposed patch This attached patch enhances gfortran to check the locale and get the currently active decimal character at the time a unit is connected and saves it. During formatted input the decimal type is checked and if necessary changed internally so that the calls to the system provided string to decimal functions convert the value properly. Some configuration checks for locale.h are needed to make sure getting the decimal character will work. If not, the code reverts to the current behavior. Need testing on various platforms for all who can do so. I tested on linux x86-64.