asciimat() does not accept matrix of strings with different length and handle extended ascii incorrectly.
Reported by j-lan
BUG DESCRIPTION:
----------------
For a matrix of strings with more than one row, asciimat() requires strings in the same colomn to be of same length, counting extended ascii characters as two. Even when strings are the same length there are issues for extended ascii. Characters are moved from one string to another.
ERROR LOG:
----------
->
at line 44 of function asciimat ( C:\Program Files\scilab-6.1.0\modules\string\macros\asciimat.sci line 58 )
asciimat: Wrong input argument #1: Inconsistent size.
HOW TO REPRODUCE THE BUG:
-------------------------
--> asciimat(["Aaaa";"Bbb"])
--> asciimat(asciimat(["Aaaa" "B";"Åå" "C"]))
ans =
"Aaaa"
"BÅåC"
OTHER INFORMATION:
------------------