octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #37928] GUI crashes with french locale


From: Rik
Subject: [Octave-bug-tracker] [bug #37928] GUI crashes with french locale
Date: Thu, 07 Mar 2013 19:01:46 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

Follow-up Comment #21, bug #37928 (project octave):

I re-ran your correct test 'a = .5', but it still works just fine on my
machine.  

This may be impossible to debug and could be recorded as just an oddity with
your particular machine.

>From past experiments, we know that it is caused by a mismatch between the
locale that the GUI expects (en_US.utf-8) and whatever the current locale is. 
Changing the locale (export LC_ALL=en_us.UTF-8) before running Octave works. 
Unfortunately, the reverse situation does not provoke the bug.  On my system
if I use 'export LC_ALL=fr_FR.UTF-8' and run Octave the GUI still works.

We also know that the problem does not appear to be with output, only input. 
We also know that the CLI interface, which doesn't use any setlocale function
calls, works.  Without any setlocale calls the program operates in the 'C'
locale which has a radix of '.'.

I thought of a few more tests.

Test #1:

sprintf ("%4f\n", e)


This will verify that output is using the correct radix for the 'C' locale.

Test #2:


./run-octave
1,5
1.5
history 5


This will at least check whether the parser is seeing the full input that the
screen is displaying.

Maybe there is some input scheme, like SCIM, that is interfering with things?

Test #3:


./run-octave
+


This should provoke a syntax error.  

If none of this brings any insight the last step would be to compile with '-g
-O0' and run octave under gdb and get a backtrace when it crashes.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37928>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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