Samuel,
I've found that the crash is not consistent. Sometimes it crashes,
sometimes not. I actually discovered the problem in a much longer text
read from a text file using mgetl() and inserting manually the line feed
and cariage return characters (13 and 10).
The problem appears indeed when displaying, not creating, so it seems
thar the problem is not with ascii() but, as you say, with the display
feature (filename is any plain text file):
fid = mopen(filename, 'rt');
text1 = mgetl(fid, -1);
mclose(fid);
text = [];
for k=1:size(text1,1)
text = [text, ascii(text1(k)), 13, 10];
end
text = ascii(text);
My first example ctrashes sometimes Scilab. Displaying this one either
just entering the variable text or using disp(text) ctrashes it always
(with a file with 3200 characters and 3 paragraphs)
Regards,
Federico
On 07/05/2021 05:44, Samuel Gougeon wrote:
Hello,
Le 07/05/2021 à 08:57, Federico Miyara a écrit :
Dear all,
If I run this simple code
ascii([ascii("hello"), 13,10, ascii("world")])
Scilab crashes.
Do you get a crash if you prevent displaying the result with a final
semi-colon?
Le 07/05/2021 à 09:26, Jean-Yves Baudais a écrit :
On Scilab 6.1.0.1582621796
IMHO, that's the question. Some things were fixed for the last year
about /the display/ of ascii(13), that actually sometimes crashed.
In the nightly built version, i get the expected display:
--> ascii([ascii("hello"), 13, 10, ascii("world")])
ans =
"hello
world"
Regards
Samuel
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
--
El software de antivirus Avast ha analizado este correo electrónico en busca de
virus.
https://www.avast.com/antivirus
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users