[MacPorts] #56780: octave: broken parser when using comma as a decimal separator
MacPorts
noreply at macports.org
Sat Jul 7 15:51:05 UTC 2018
#56780: octave: broken parser when using comma as a decimal separator
--------------------+--------------------
Reporter: mojca | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: octave
--------------------+--------------------
I think this is a side-effect of Qt changing decimal separator, but octave
is apparently broken for me since some time recently (It could have been a
month or more since I last used it).
{{{
octave:1> a = 1.3e2
a = 1
}}}
It works correctly if I set `export LC_ALL=C`. I believe this needs a fix
somewhere in the source code.
Some software sets
{{{
setlocale(LC_NUMERIC, "POSIX");
}}}
inside C(++) code to cancel the side effect of Qt setting this to the
locale.
I have `LC_ALL=sl_SI.UTF8` set in my environmental variables and I run
octave from Terminal (not sure why, some time ago it would automatically
launch with a GUI, but no time to debug now).
--
Ticket URL: <https://trac.macports.org/ticket/56780>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list