octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sscanf locale on MacOS X


From: John W. Eaton
Subject: Re: sscanf locale on MacOS X
Date: Sat, 28 Jul 2012 15:04:33 -0400

On 28-Jul-2012, marco atzeri wrote:

| On 7/28/2012 4:42 PM, Ben Abbott wrote:
| > Pascal,
| >
| > I'm encountering the test failure below using gcc-4.5 from MacPorts.
| >
| >>>>>> processing /Users/bpabbott/Development/mercurial/default/src/file-io.cc
| >    ***** test
| >   assert (sscanf ("1,2", "%f", "C"), 1)
| >   assert (sscanf ("1,2", "%f", "fr_FR"), 1.2)
| > !!!!! test failed
| > assert (sscanf ("1,2", "%f", "fr_FR"),1.2) expected
| >   1.2000
| > but got
| >   1
| > values do not match
| >
| > I assume the changeset below should have fixed this?
| >
| > changeset:   14210:238e499c5fea
| > parent:      14208:67a0ab9f8283
| > user:        Pascal Dupuis <address@hidden>
| > date:        Wed Jan 18 16:40:29 2012 -0500
| > summary:     locale support implementation in [fs]scanf functions
| >
| > If so, I can file a bug report.
| >
| > Ben
| >
| 
| failing also on cygwin.

I think that is the changeset that caused this test failure.

Before that changeset, we didn't attempt to handle locales in sscanf,
and I'm not sure that this is the best way to do it.  Or that it makes
sense to only do something for *scanf functions when we don't even
attempt to handle locale properly anywhere else in Octave.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]