Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-09 Thread Janne Blomqvist
On Sat, Nov 8, 2014 at 2:21 AM, Jerry DeLisle wrote: > On 11/07/2014 02:15 AM, Janne Blomqvist wrote: >> >> On Thu, Nov 6, 2014 at 12:38 PM, Janne Blomqvist >> wrote: >>> >>> On Wed, Nov 5, 2014 at 12:48 PM, Janne Blomqvist >>> wrote: Hi, the attached patch fixes a few locale

Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-07 Thread Jerry DeLisle
On 11/07/2014 02:15 AM, Janne Blomqvist wrote: On Thu, Nov 6, 2014 at 12:38 PM, Janne Blomqvist wrote: On Wed, Nov 5, 2014 at 12:48 PM, Janne Blomqvist wrote: Hi, the attached patch fixes a few locale related failures in libgfortran, in the case where the POSIX 2008 extended locale functiona

Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-07 Thread Janne Blomqvist
On Thu, Nov 6, 2014 at 12:38 PM, Janne Blomqvist wrote: > On Wed, Nov 5, 2014 at 12:48 PM, Janne Blomqvist > wrote: >> Hi, >> >> the attached patch fixes a few locale related failures in libgfortran, >> in the case where the POSIX 2008 extended locale functionality and >> extensions strto{f,d,ld}

Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-06 Thread Janne Blomqvist
On Wed, Nov 5, 2014 at 12:48 PM, Janne Blomqvist wrote: > Hi, > > the attached patch fixes a few locale related failures in libgfortran, > in the case where the POSIX 2008 extended locale functionality and > extensions strto{f,d,ld}_l are present. > > These failures typically occur when libgfortra

Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-05 Thread Jakub Jelinek
On Wed, Nov 05, 2014 at 01:48:32PM +0200, Janne Blomqvist wrote: > On Wed, Nov 5, 2014 at 1:07 PM, Jakub Jelinek wrote: > > On Wed, Nov 05, 2014 at 12:48:01PM +0200, Janne Blomqvist wrote: > >> @@ -3528,6 +3533,11 @@ finalize_transfer (st_parameter_dt *dtp) > >>if ((dtp->common.flags & IOPARM_

Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-05 Thread Janne Blomqvist
On Wed, Nov 5, 2014 at 1:07 PM, Jakub Jelinek wrote: > On Wed, Nov 05, 2014 at 12:48:01PM +0200, Janne Blomqvist wrote: >> @@ -3528,6 +3533,11 @@ finalize_transfer (st_parameter_dt *dtp) >>if ((dtp->common.flags & IOPARM_DT_HAS_SIZE) != 0) >> *dtp->size = dtp->u.p.size_used; >> >> +#ifdef

Re: [PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-05 Thread Jakub Jelinek
On Wed, Nov 05, 2014 at 12:48:01PM +0200, Janne Blomqvist wrote: > @@ -3528,6 +3533,11 @@ finalize_transfer (st_parameter_dt *dtp) >if ((dtp->common.flags & IOPARM_DT_HAS_SIZE) != 0) > *dtp->size = dtp->u.p.size_used; > > +#ifdef HAVE_USELOCALE > + if (dtp->u.p.old_locale != (locale_t)

[PATCH, libfortran] PR 47007, 61847 Locale failures in libgfortran

2014-11-05 Thread Janne Blomqvist
Hi, the attached patch fixes a few locale related failures in libgfortran, in the case where the POSIX 2008 extended locale functionality and extensions strto{f,d,ld}_l are present. These failures typically occur when libgfortran is used from a program which has set the locale with setlocale(), a