Opened 6 years ago

Closed 6 years ago

#56780 closed defect (fixed)

octave: broken parser when using comma as a decimal separator

Reported by: mojca (Mojca Miklavec) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: octave

Description

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).

Change History (2)

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: MarcusCalhoun-Lopez removed
Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

Sorry this issue was not address sooner.
Somehow, it was not assigned to me, and it fell off of my radar.

However, I believe the issue has already been fixed.
There is an upstream report that seems to be on point.
It has been fixed upstream, and the fix seems to have made it into one of the releases.

I will close this ticket for now.
If I am wrong, please feel free to reopen.

Note: See TracTickets for help on using tickets.