Re: [Scilab-users] Problem with ascii()

2021-05-07 Thread Federico Miyara


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


Re: [Scilab-users] Problem with ascii()

2021-05-07 Thread Federico Miyara


Jean-Yves,

Typing ver yields

--> ver
 ans  =
 column 1
  "Scilab Version: "
  "Operating System: "
  "Java version: "
  "Java runtime information: "
  "Java Virtual Machine information: "
  "Vendor specification: "
 column 2
  "6.1.0.1582621796"
  "Windows 7 6.1"
  "1.8.0_151"
  "Java(TM) SE Runtime Environment (build 1.8.0_151-b12)"
  "Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)"
  "Oracle Corporation"

Regards,

Federico


On 07/05/2021 04:26, Jean-Yves Baudais wrote:

Hello,


ascii ( [ ascii ( " hello " ) , 13 , 10 , ascii ( " world " ) ] )


On Scilab 6.1.0.1582621796 I get


--> ascii([ascii("hello"), 13, 10, ascii("world")])
  ans  =


world"


What is your Scilab version?


-- Jean-Yves
___
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


Re: [Scilab-users] Problem with ascii()

2021-05-07 Thread Samuel Gougeon

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


Re: [Scilab-users] Problem with ascii()

2021-05-07 Thread Jean-Yves Baudais
Hello,

> ascii ( [ ascii ( " hello " ) , 13 , 10 , ascii ( " world " ) ] )


On Scilab 6.1.0.1582621796 I get


--> ascii([ascii("hello"), 13, 10, ascii("world")])
 ans  =


world"


What is your Scilab version?


-- Jean-Yves
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Problem with ascii()

2021-05-07 Thread Antoine Monmayrant

Hello,

On 07/05/2021 08:57, Federico Miyara wrote:


Dear all,

If I run this simple code

ascii([ascii("hello"), 13,10, ascii("world")])

Scilab crashes. I should get something like this:

"hello
world"

Is it a bug?


Well, when Scilab crashes, it's always a bug! :-)

On my system it does not crash:

--> ascii([ascii("hello"), 13, 10, ascii("world")])
 ans  =


world"

Antoine


Regards,

Federico Miyara

 
	Libre de virus. www.avast.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Problem with ascii()

2021-05-07 Thread Federico Miyara


Dear all,

If I run this simple code

ascii([ascii("hello"), 13,10, ascii("world")])

Scilab crashes. I should get something like this:

"hello
world"

Is it a bug?

Regards,

Federico Miyara


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