[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-fortran
Subject: Re: Locales in C effect read in Fortran
From: "N.M. Maclaren" <nmm1 () cam ! ac ! uk>
Date: 2015-12-23 13:06:09
Message-ID: Prayer.1.3.5.1512231306090.4574 () hermes-2 ! csi ! cam ! ac ! uk
[Download RAW message or body]
On Dec 23 2015, Andrew Pinski wrote:
> On Wed, Dec 23, 2015 at 2:23 AM, Dirk Spelsberg <dsp@chemie.uni-kl.de>
> wrote:
>> It took me quite a while to sort this out. The program attached works
>> with English locales but not with German ones. Apparently the decimal
>> point is replaced by a decimal comma somewhere during the read.
>
>I don't think this is a bug as your locale says the decimal separator
>is a comma.
>This is also true when using scanf too.
It's unquestionably a bug. Fortran is not a locale-based language, and
the default is clearly specified to be a decimal point (not processor
dependent).
Regards,
Nick Maclaren.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic