[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55974] Octave stuck on Linux when figure cont
From: |
Roland Baudin |
Subject: |
[Octave-bug-tracker] [bug #55974] Octave stuck on Linux when figure contains a string with non ASCII characters encoded in ISO 8859-1 |
Date: |
Thu, 21 Mar 2019 09:57:56 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0 |
URL:
<https://savannah.gnu.org/bugs/?55974>
Summary: Octave stuck on Linux when figure contains a string
with non ASCII characters encoded in ISO 8859-1
Project: GNU Octave
Submitted by: roland65
Submitted on: jeu. 21 mars 2019 13:57:55 UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Sometimes I use on Linux some script (m-file) that comes from the Windows
world. Such scripts are usually encoded in ISO 8859-1.
If there is in the script some non ASCII character (like 'é', 'à' and other
french accents), in a call to functions like xlabel(), ylabel(), title(),
etc., then Octave 5.1.0 gets stuck and seems to be lost in an infinite loop.
I attached two scripts to test this issue. Both contain the same code (below,
'Fréquence' is the french word for 'Frequency'):
plot( sin(1 : 1000) );
xlabel('Fréquence');
Note that the script 'test_utf8.m' is encoded in UTF-8 and the script
'test_iso88591.m' is encoded in ISO 8859-1.
In Octave 5.1.0 (system is Ubuntu Linux 18.04 64 bits), test_utf8.m is
executed with no error and the word 'Fréquence' is correctly displayed, while
test_iso88591.m makes Octave stuck (empty figure window, prompt never
returns).
In Octave 4.4.1 (same system), test_iso88591.m runs, but displays the
following error message:
warning: ft_text_renderer: failed to decode string `Fr�quence x' with locale
`fr_FR.UTF-8'
warning: called from
__axis_label__ at line 31 column 3
xlabel at line 51 column 8
test at line 4 column 1
warning: ft_text_renderer: failed to decode string `Fr�quence x' with locale
`fr_FR.UTF-8'
warning: called from
__axis_label__ at line 31 column 3
xlabel at line 51 column 8
test at line 4 column 1
In Windows, both scripts run as expected.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: jeu. 21 mars 2019 13:57:55 UTC Name: test.zip Size: 423o By:
roland65
Scripts to test the issue
<http://savannah.gnu.org/bugs/download.php?file_id=46604>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55974>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55974] Octave stuck on Linux when figure contains a string with non ASCII characters encoded in ISO 8859-1,
Roland Baudin <=