gb.form.editor versus non-ascii chars (contrib)
Posted
#1
(In Topic #1324)
Regular

I found a bug related to highlight and non-ascii characteres (that break the app).
I found the solution for gb.form.editor (I fixed with the source code in my PC)
How can I send the info, is there an active developer e-mail for me to send it ?
Posted
Guru

So is it a bug in displaying non ascii chars in a TextEditor?
or an error in your coding trying to display non-ascii chars?
Benoit will soon let you know
Posted
Guru

Connexion
If you are sure you have found a bug and you are sure you understand how everything works enough to make changes to gambas components yourself then contributions from users happen via the gitlab repository by forking the repository and making merge requests.
Gambas / gambas · GitLab
Contributing guidelines…
CONTRIBUTING.md · master · Gambas / gambas · GitLab
Posted
Regular

BruceSteers said
So is it a bug in displaying non ascii chars in a TextEditor?
Remember that unicode for Latin (utf-8) may have 2 bytes instead of one for the non-ascii converted to utf-8 !
All the math and functions in highlight were done with USA chars in mind, and you dont have á é õ ç and so on…
So they used all MID LEN INSTR considering one byte character
But the solution is NOT just add String.len String.Mid, etc
<COLOR color="#0000FF">Please tell me Benoit contact in private </COLOR>to shortcut this contrib. I don't want to do the fix, just to give him the formula
I subscribed to this post but didn't receive notification e-mail, checked out and gmail put on SPAN folder… strange.
Posted
Regular

BruceSteers said
Tried to register to bug tracker (I told you in the past) it says sent a confirmation e-mail but never comes. Neither in SPAN folder
The login / register page is not working.
Posted
Guru

sergioabreu said
BruceSteers said
Tried to register to bug tracker (I told you in the past) it says sent a confirmation e-mail but never comes. Neither in SPAN folder
The login / register page is not working.
yes i probably told you you have to use a different email to your gmail.
you could sign up with proton mail and set gmail to also get your proton mails
what about the mailing list https://lists.gambas-basic.org/#user (i think the maintainer has managed to fix gmails bouncing)
Posted
Regular

<COLOR color="#0000FF">if I can directly contact Benoit I will send him the fix</COLOR>. Waiting in private message.
Posted
Guru

sergioabreu said
I will not create an e-mail to workaround a non working system, I am sorry.
<COLOR color="#0000FF">if I can directly contact Benoit I will send the fix</COLOR>. Waiting in private message.
yep gmail is pretty rubbish
if you signup to the mailing list they can probably add you to the bugtracker manually.
https://lists.gambas-basic.org/#user
Posted
Regular

<COLOR color="#BF0040">Users of all these countries may face a sudden crash</COLOR> due to the bug I discovered. It's not small thing.
Is it ok to say that "Gambas text editor is only for code with ascii letters" ?
Every program has a type called "STRING" that may contain non ascii chars as well as the COMMENTS in code that can be encoded to UTF-8, if it is outside USA.
If someone highlights one "string que contém acentuação" - this string has quantity of CHARS different of quantity of BYTES and this may break gb.form.editor - depending on the highlight - while it does not have the fix I did.
I will try to contact Benoit via linkedin. I don't want to code globally but I still can help by information.
Posted
Guru

you sound like you know better than Benoit so hopefully you can teach him how to do it properly
Posted
Regular

Your "You sound" just shows your filter, your perception.
Instead of talking about CODE and SOLUTION you are always taking things to PERSONAL.
I just said I found a bug and want to help.
Maybe Benoit have not dealed with this bug up to now.
Posted
Guru

and you dont have á é õ ç and so on
But we do so I'm not sure what you are talking about.
here's a snapshot of my editor that uses TextEditor
So you're wrong, as clearly can be seen in the snapshot, yes we do
(is it okay to have that opinion? oh wait,i don't care
It's a shame you only want to talk to Benoit privately rather that using the official ways he's set up to report issues.
because i'd like to see the response.
There are ways to contribute. I showed you the links to let you know how to contribute.
On the gambas web page there's a link that tells you how to report bugs /doc/report - Gambas Documentation
On the gambas "About gambas" you will find Benoits email if you feel you can only send personal emails to the developer.
1 guest and 0 members have just viewed this.



