Bug with "white" spaces

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 562
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Bug with "white" spaces

Message par compsystems » sam. déc. 08, 2018 1:05 pm

Hello, I have a code written in a docx file (windows), when I copy and paste the code in xcas, then when I compile it informs me that there is an error, I think the problem is in some invalid characters, maybe the first ASCII, once it can be a tabulation character, I manually delete all spaces and and replace it from the space key, then compile perfectly.

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Bug with "white" spaces

Message par parisse » sam. déc. 08, 2018 2:09 pm

How can you expect me to do something without details?
Send the session.

compsystems
Messages : 562
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: Bug with "white" spaces

Message par compsystems » sam. déc. 08, 2018 2:35 pm

please try to copy and paste the following line, after the second NOT appears a point (online version), at the time of bringing it to the entry line

NOT false,NOT​ true

in the PC version when scanning the entry line with the cursor [>] on reaching the second letter T, the cursor stops.
:1: syntax error, unexpected T_NUMBER line 1 col 18 at true

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Bug with "white" spaces

Message par parisse » sam. déc. 08, 2018 4:53 pm

There is indeed an unrecognized character, but I'm sorry, I can't handle all the strange characters that some softwares store in the clipboard. This is probably true for all other scientific softwares, you should consider switching to more compatible softwares!

compsystems
Messages : 562
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Re: Bug with "white" spaces

Message par compsystems » dim. déc. 09, 2018 12:49 pm

Hi BP, one option can be to ignore strange characters outside the keywords, another option to show in the error message the numeric value of the strange character to detect where the problem is.

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Bug with "white" spaces

Message par parisse » dim. déc. 09, 2018 5:58 pm

That's impossible, because I don't know if an UTF8 character is visible or not.

Répondre