On Fri, 25 Nov 2016, Ignacio Diaz-Emparanza wrote:
El 24/11/16 a las 19:00, Allin Cottrell escribió:
>
> Ignacio, could you try for a minimal version of the problem? (I would do
> this myself, but I couldn't provoke the problem.)
>
> What happens if you just do, for example:
>
> set force_decpoint on
> string smY = sprintf("%g", 2.72985)
> printf "smY = '%s'\n", smY
>
> Is that enough to get a crash, or does the crash occur only when the
> following "plot" block is executed?
>
> Allin
Yes, I also have a crash with this. In fact the problem is the line
set force_decpoint on
An script with only this line makes gretl to crash. But
set force_decpoint off
runs ok.
Thanks, that helps. Can you see if the problem still occurs with the
current Windows snapshot (posted ysterday). I found something in the
code that could cause a crash if the C-library function setlocale()
is broken -- that is, if it returns NULL instead of a descriptor for
the current numeric locale.
We now work around that, though I think this means that if you do
"set force_decpoint on" and then later "set force_decpoint off", the
latter call won't work, because the OS has not given us a record of
what the numeric locale was before we forced the decimal dot.
Allin