Hi there
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 ?
gb.form.editor versus non-ascii chars (contrib)
-
- Posts: 91
- Joined: Tuesday 9th July 2024 9:27am
- BruceSteers
- Posts: 1831
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: gb.form.editor versus non-ascii chars (contrib)
but a TextEditor is not supposed to support non ascii chars. It's a "Text" editor.
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
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
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- BruceSteers
- Posts: 1831
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: gb.form.editor versus non-ascii chars (contrib)
So to report a bug to Benoit (or see if it is a bug or not) use the bugtracker.
https://gambaswiki.org/bugtracker
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.
https://gitlab.com/gambas/gambas
Contributing guidelines...
https://gitlab.com/gambas/gambas/-/blob ... IBUTING.md
https://gambaswiki.org/bugtracker
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.
https://gitlab.com/gambas/gambas
Contributing guidelines...
https://gitlab.com/gambas/gambas/-/blob ... IBUTING.md
If at first you don't succeed , try doing something differently.
BruceS
BruceS
-
- Posts: 91
- Joined: Tuesday 9th July 2024 9:27am
Re: gb.form.editor versus non-ascii chars (contrib)
Remember that unicode for Latin (utf-8) may have 2 bytes instead of one for the non-ascii converted to utf-8 !BruceSteers wrote: ↑Tuesday 3rd September 2024 9:57am
So is it a bug in displaying non ascii chars in a TextEditor?
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
Please tell me Benoit contact in private 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.
Last edited by sergioabreu on Wednesday 11th September 2024 5:29pm, edited 3 times in total.
-
- Posts: 91
- Joined: Tuesday 9th July 2024 9:27am
Re: gb.form.editor versus non-ascii chars (contrib)
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 folderBruceSteers wrote: ↑Tuesday 3rd September 2024 10:02am So to report a bug to Benoit (or see if it is a bug or not) use the bugtracker.
https://gambaswiki.org/bugtracker
The login / register page is not working.
- BruceSteers
- Posts: 1831
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: gb.form.editor versus non-ascii chars (contrib)
yes i probably told you you have to use a different email to your gmail.sergioabreu wrote: ↑Wednesday 11th September 2024 5:24pmTried to register to bug tracker (I told you in the past) it says sent a confirmation e-mail but never comes. Neither in SPAN folderBruceSteers wrote: ↑Tuesday 3rd September 2024 10:02am So to report a bug to Benoit (or see if it is a bug or not) use the bugtracker.
https://gambaswiki.org/bugtracker
The login / register page is not working.
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)
If at first you don't succeed , try doing something differently.
BruceS
BruceS
-
- Posts: 91
- Joined: Tuesday 9th July 2024 9:27am
Re: gb.form.editor versus non-ascii chars (contrib)
I will not create an e-mail to workaround a non working system, I am sorry.
if I can directly contact Benoit I will send him the fix. Waiting in private message.
if I can directly contact Benoit I will send him the fix. Waiting in private message.
- BruceSteers
- Posts: 1831
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: gb.form.editor versus non-ascii chars (contrib)
yep gmail is pretty rubbishsergioabreu wrote: ↑Wednesday 11th September 2024 5:38pm I will not create an e-mail to workaround a non working system, I am sorry.
if I can directly contact Benoit I will send the fix. Waiting in private message.
if you signup to the mailing list they can probably add you to the bugtracker manually.
https://lists.gambas-basic.org/#user
If at first you don't succeed , try doing something differently.
BruceS
BruceS
-
- Posts: 91
- Joined: Tuesday 9th July 2024 9:27am
Re: Is a HUGE bug with 10 line solution
Think about the quantity of countries that have non-ascii chars in their language that can be CONVERTED to UTF-8 and loaded in a gambas Text Editor.
Users of all these countries may face a sudden crash 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.
Users of all these countries may face a sudden crash 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.
- BruceSteers
- Posts: 1831
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: gb.form.editor versus non-ascii chars (contrib)
okay then.
you sound like you know better than Benoit so hopefully you can teach him how to do it properly
you sound like you know better than Benoit so hopefully you can teach him how to do it properly
If at first you don't succeed , try doing something differently.
BruceS
BruceS