[Scilab-users] Scilab 6.0.0 alpha1: Carriage return's ascii code <> 32
Samuel Gougeon
sgougeon at free.fr
Fri Jul 31 14:33:02 CEST 2015
Hi Rafael,
Le 31/07/2015 10:28, Rafael Guerra a écrit :
> Dear Scilabers,
>
> I have filled a bug report Bug# 14020, to indicate different behavior
> compared to previous version:
>
> // In Scilab 6.0.0 alpha1, carriage return's ascii code is not defined:
> str=input("(Hit Enter):",'string');
> ascii(str)
> ans = (empty)
>
> // While in Scilab 5.2.2, carriage return return in input returned space with ascii code (32):
> str=input("(Hit Enter):",'string');
> ascii(str)
> ans = 32.
You are right. It was an unreported bug. str should ahve been "" instead
of " ":
-->str==""
ans =
F
-->str==" "
ans =
T
In Scilab 6, you are right as well: this bug has been fixed, but 2
others appear. imo,
* in string mode, <enter> should return str=="" with ascii(str)==[]
* in numerical mode, <enter> should return str==[]. It was the case
with Scilab<6. Now:
--> str=input("(Hit Enter):");
(Hit Enter):
--> ascii([])
ans =
The bug report may be completed.
Best regards
Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20150731/77792a8e/attachment.htm>
More information about the users
mailing list